Sunday, December 10, 2017

Make a video clip run in a loop in HTML5!

 
 

...is made with the following HTML and it is the loop keyword that allows for the looping.

<video controls loop>
   <source src="https://vtt.tumblr.com/tumblr_ococjk2Glt1udnceu.mp4"
         type="video/mp4">
   Your browser does not support the video tag.
</video>

 
 

By the way, using the autoplay keyword in the same spot makes the video clip immediate start playing upon page load!

No comments:

Post a Comment