December 2, 2016 9:46 am

Create HTML5 Fullscreen Static Video Background Using CSS

In This tutorial I will show you how to add a static video background using CSS, It’s a very simple and easy script and looks amazing on landing pages. In this tutorial we are using HTML5 <video> tag to embed video and CSS to put that video on background.

Create HTML5 Fullscreen Static Video Background Using CSS

HTML5 Video used to add video on your page:

Above script add video using HTML5 <video> tag and in video properties we set it to mute, autoplay and loop it will play video automatically without sound and repeat it all the time in the source we put our video file.

CSS used to make video background working:

Above CSS add video on full screen of your landing page.

That’s it.

I hope you like this tutorial please feel free to comment your problems we love to help you.

Author Huzoor Bux

I am Huzoor Bux from Karachi (Pakistan). I have been working as a PHP Developer from last 5+ years, and its my passion to learn new things and implement them as a practice. Basically I am a PHP developer but now days exploring more in HTML5, CSS and jQuery libraries.

Tutorial Categories: