If the video is short you might want to have it replay automatically. In this video, learn how to apply the loop attribute and, more importantly, where and when to apply it.
- [Instructor] Our final exercise in this chapter…answers a common question.…My video is really short, can I loop it?…The answer is, yes, there is an attribute for that.…And to get yourself started, open the looping.html file…found in your chapter download.…The first thing you will notice is a change in the video.…Right here, it's AsilomarShort.…This is a five-second version of the clip…which I'm going to use to demonstrate a loop.…Now what you do is you add a loop attribute…right at the end of the video element.…
So you just type in loop, and if you save it,…and test in the browser,…I'm just gonna turn up the audio here,…you see, there's the five seconds.…And it just loops, okay, so I just watch it loop.…Here it comes up to the end, and it starts again.…And it just keeps looping until you stop it.…So let's come back to Brackets.…So what this attribute does is…to simply restart the video when it is finished playing.…
This one is rather dangerous,…because it will continuously play and replay the video…until the user either leaves the page or quits the browser.…
Author
Released
10/12/2018- Key video formats used to publish on the web
- Encoding video that's optimized for online delivery
- HTML5 native video embedding and interaction
- Styling video components with CSS
- Captioning video
- Preparing video for social media
- Using Dynamic Link
Skill Level Beginner
Duration
Views
Related Courses
-
Design the Web: HTML Background Video
with Chris Converse28m 35s Beginner -
Web Video: Develop Your Video Presence
with Rick Allen Lippert41m 54s Appropriate for all -
Web Video: Lighting
with Rick Allen Lippert26m 54s Appropriate for all -
Web Video: Makeup Techniques
with Rick Allen Lippert25m 47s Appropriate for all
-
Introduction
-
Exercise files1m 11s
-
1. Web Video Formats
-
2. Encoding Video
-
The pipe3m 5s
-
Adobe Media Encoder overview3m 49s
-
Encoding an MP47m 57s
-
Miro Video Converter4m 33s
-
HandBrake4m 38s
-
Encoding from Adobe Premiere2m 58s
-
Fnordware2m 5s
-
-
3. HTML5 and Video
-
The video element2m 17s
-
The source attribute3m 26s
-
Autoplay3m 20s
-
Adding controls3m 49s
-
Alternate content sources3m 15s
-
Poster frame2m 23s
-
Resize video3m 45s
-
Looping video1m 34s
-
-
4. Video and CSS
-
Video in a box5m 47s
-
Applying opacity3m 41s
-
Text wrap4m 44s
-
Apply a gradient7m 44s
-
Rotate a video3m 18s
-
Animate a video7m 43s
-
-
5. Playing with Video
-
Background video: Premiere7m 11s
-
Background video code5m 42s
-
Captioning video8m 30s
-
Cinemagraph: Photoshop6m 54s
-
Animated GIF5m 39s
-
Third-party controllers7m 26s
-
Preparing for social media3m 58s
-
Using Dynamic Link5m 38s
-
Conclusion
-
Next steps1m 23s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Looping video