You are possibly having a still picture as the background for your site but it might give a better and more amazing experience when you could think about putting moving pictures, like an animation or an auto-playing video, in the background of your website.
The Google homepage often uses video background scenes, like all those penguins moving out of an ice hole one to another, and it requires a couple of rule to include video backgrounds scenes in your webpages.
There are lots of techniques here:
Google uses the conventional HTML5 <video> tags to provide video clips on the homepage. The embedded video has a limited size and it does not re-size on its own with the web browser.
There are actually ready-to-use jQuery plug-ins, Tubular and BigVideo.js such as that allow you to simply use any video, or a number of video clips, as web page background scenes.
The various other simple strategy, as you can see in this trial, uses HTML and CSS labels (no JavaScript) to help you place any YouTube video in the site qualifications.
Related: http://www.amazecraze.com/print-youtube-video-storyboard/
YouTube Video Background
To begin with, simply insert the code below near the outlet <body> tag of your web template. Make sure you also substitute the ID with the genuine video ID of the YouTube video that you want to use in any background.
Throughout, we're using YouTube’s IFRAME tags to embed that video clip like it consumes the whole web page (both size and height are fixed to 100%). Also, the z-index is fixed to adverse so the YouTube video will show up several stages below the most important content of your web page.
The disadvantage is that your background video clip won’t work on cellular phones and it isn't possible to mute the audio of videos without making use of JavaScript.
Embed Background Music with YouTube Audio
Don't forget the Geocities era when sites would instantly play background music once you started out them much to the discomfort of employees in offices. They mainly used fresh audio files, like MP3, WAV as well as the MIDI format, to include music but it's also possible to use any of your preferred YouTube audio for embedding background music.
The technique is that you include a normal YouTube video (with autoplay=1) and set the peak & size of it to zero so the included IFRAME stays continues to be unseen. This can be carried out with an individual line of code that you may add anyplace on your website.