Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if(is_front_page() ) { ?>
- <div id="videoContainer">
- <video autoplay loop id="videoBackground" preload="auto">
- <source src="http://yokellocalhosting.com/freddy/wp-content/uploads/2014/03/Fabulous_Freddys_Background_MP4.mp4" type="video/mp4" />
- <source src="http://yokellocalhosting.com/freddy/wp-content/uploads/2014/03/Fabulous_Freddys_Background_OGG.ogg" type="video/ogg" />
- <source src="http://yokellocalhosting.com/freddy/wp-content/uploads/2014/03/Fabulous_Freddys_Background_WEBM.webm" type="video/webm" />
- </video>
- </div>
- <?php } ?>
- #videoContainer{
- position: fixed;
- left: 0px;
- top: 0px;
- z-index: 9;
- width: 100%;
- height: 100%;
- }
- #videoBackground{
- position: relative;
- right: 0;
- bottom: 0;
- min-width: 100%;
- min-height: 100%;
- width: auto;
- height: auto;
- z-index: 9;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement