Create fullscreen HTML5 responsive video backgrounds

You may also like...

10 responses to “Create fullscreen HTML5 responsive video backgrounds”

  1. Paweł Ratajczyk says:

    Thanks, that’s awesome! But how to center the video?

  2. Paul Gillespie says:

    I used the above and thought the same; “how to keep the video centred on resize?”. I used the following jQuery to do this…

    jQuery(document).ready(function() {

    function resize_background() {

    jQuery(“#bg-video”).css(“min-height”, jQuery(window).height() + “px”);

    var video_width = parseInt(jQuery(“#bg-video”).css(“width”));

    var window_width = jQuery(window).width();

    if(video_width > window_width) {

    var left_pos = ((video_width – window_width) / 2) * -1;

    jQuery(“#bg-video”).css(“left”, left_pos + “px”);


    else {

    jQuery(“#bg-video”).css(“left”, 0);



    jQuery(window).resize(function() {





  3. […] a .Webm video if it comes after something else. Now we are able to get onto a few coding! The new HTML5 video tag makes it exceptional and smooth to embed videos in your website. Note that we’ve got a […]

  4. Wiley says:

    Hi, I think your blog might be having browser compatibility issues. When I look at your blog site in Ie, it looks fine but when opening in Internet Explorer, it has some overlapping. I just wanted to give you a quick heads up! Other then that, terrific blog!

  5. Dwight says:

    Everyone loves what you fellows are now up to. This type of great work and reporting! Keep up the wonderful work guys, I’ve incorporated you my personal blogroll.

  6. I like the valuable information you provide on your articles. I will bookmark your weblog and test again right here frequently. I am quite certain I will be informed plenty of new stuff proper here! Good luck for the following!

  7. I and also my buddies have been taking note of the nice procedures found on your web site and so all of the sudden I had a horrible feeling I never expressed respect to the website owner for those strategies. The men were definitely as a result glad to read all of them and have now actually been tapping into those things. Many thanks for really being very thoughtful and also for finding some fantastic topics millions of individuals are really eager to discover. My very own honest apologies for not expressing gratitude to you earlier.

  8. house sale says:

    There are actually numerous details like that to take into consideration. That is a nice level to carry up. I provide the thoughts above as normal inspiration but clearly there are questions just like the one you carry up the place an important thing will probably be working in sincere good faith. I don?t know if finest practices have emerged around issues like that, however I’m sure that your job is clearly identified as a fair game. Both girls and boys really feel the impression of only a second’s pleasure, for the rest of their lives.

  9. Brain says:

    Today, I went to the beach front with my kids. I found a sea shell and gave it to my 4 year old daughter and said “You can hear the ocean if you put this to your ear.” She placed the shell to her ear and screamed. There was a hermit crab inside and it pinched her ear. She never wants to go back! LoL I know this is completely off topic but I had to tell someone!

  10. Really good tips was looking for something like this searched the whole internet and ended up on this article really useful one to the point rather than bragging. Keep up the good work.

Leave a Reply

Your email address will not be published. Required fields are marked *