One way to add a video background to your website is to use the video embed HTML5 feature along with a bit of CSS3 to help your video maintain its position. Though this is an option, it’s not an ideal solution because it doesn’t allow you the control you need to make your videos interactive (if desired) or to determine what device your website is being loaded on. The latter is critical, because many devices won’t run background videos.
There are many different scripts out there for loading videos, and each can be customized to serve your own purposes. However, there are two scripts I recommend, depending on your video source.
Developed by John Polacek at Draftfcb Chicago, this script makes it simple for you to add a background video to your website. You’ll need the jQuery, jQuery UI, and jQuery imagesloaded libraries and plugin to use the script. With this script, you can load videos from any source (though the author recommends Vimeo), and you can even add an interactive playlist.
This is a simple script that’s likewise easy to use; it will call YouTube videos to be loaded as your web page background.
As with any web implementation, test your new video background to make sure it plays on all major browsers and responds as it should (such as with image replacement) on different devices and operating systems. Don’t be afraid to play with the code to add features you want to use, and make it your own! And, if you’re more a designer by heart, you can always hire a freelancer to install these scripts for you.
They’re relatively simple, so an experienced coder should be able to implement them rather quickly and with minimal charge.
Do you have a preferred method of loading videos as web page backgrounds? Have I missed anything that should be included? Let me know in the comments!