video effect using javascript -


can 1 please tell me how video effect shown on this page? has 100% width, responsive , uses javascript.

if have code samples great.

the site using html5 video tag. here's source, rendered google chrome:

<video loop="loop" poster="/video/features/main.jpg" style="width: 1263px; height: 711px; top: -186.5px; left: 0px;">   <source src="/video/features/main.webm" type="video/webm">   <source src="/video/features/main.mp4" type="video/mp4"> </video> 

the tag, evidently available in html5 compatible browsers, can play video files. that's it's doing in case.

the first source primary video source, , mp4 fallback in case first video format isn't supported. loop property allows set loop playing video, , poster image show until user plays or seeks.

take @ mdn page.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -