Toggle navigation
Bootsnipp
Bootstrap
For
CSS Frameworks
Bootstrap
Foundation
Semantic UI
Materialize
Pure
Bulma
References
CSS Reference
Tools
Community
Page Builder
Form Builder
Button Builder
Icon Search
Dan's Tools
Diff / Merge
Color Picker
Keyword Tool
Web Fonts
.htaccess Generator
Favicon Generator
Site Speed Test
Snippets
Featured
Tags
By Bootstrap Version
4.1.1
4.0.0
3.3.0
3.2.0
3.1.0
3.0.3
3.0.1
3.0.0
2.3.2
Register
Login
"Full Width Screen Html5 Video Background"
Bootstrap 3.1.0 Snippet by
thepeanut
3.1.0
jQuery
background
Preview
HTML
CSS
JS
View Full Screen
Forked from
Fork
Fork this
Parent
9.8K
 
1 Fav
Post to Facebook
Tweet this
<link href="//netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.1.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div id="full-video"> <!--Video Section--> <section class="content-section video-section"> <video id="video_background" preload="auto" autoplay="" loop="" poster="//Poster.jpg"> <source src="//Video.mp4" type="video/mp4"> <source src="//Video.ogg" type="video/ogg"> <source src="//Video.webm" type="video/webm"> </video> <div class="pattern-overlay"> <div class="container"> <div class="row"> <div class="col-md-12"> <h1>Your Headline Text Here</h1> </div> </div> </div> </div> </section> <!--Video Section Ends Here--> </div>
.video-section .pattern-overlay { padding: 70px 0 32px; min-height: 550px; background-color: rgba(71, 71, 71, 0.59); /* Incase of overlay problems just increase the min-height*/ } .video-section h1, .video-section h3{ text-align:center; color:#fff; } .video-section h2{ font-size:49px; font-weight:bold; text-transform: uppercase; margin: 0px auto 0px; text-shadow: 1px 1px 1px #000; -webkit-text-shadow: 1px 1px 1px #000; -moz-text-shadow: 1px 1px 1px #000; padding-top: 0; position: relative; bottom: 25px; } .video-section h3{ font-size: 40px; font-weight:lighter; margin: 0px auto 15px; } .video-section .buttonBar{display:none;} .player {font-size: 1px;} .video-section { overflow: hidden; position: relative; } #video_background { position: absolute; top: 0; right: 0px; min-width: 100%; min-height: 100%; width: auto; height: auto; z-index: -1000; overflow: hidden; } @media (max-width: 992px) { .video-section h2 { font-size: 36px; } } @media (max-width: 768px) { .video-section h2 { font-size: 32px; line-height: normal; } .video-section h3 { font-size: 30px; } .video-section .pattern-overlay { min-height: 300px; padding: 35px; } @media (max-width: 767px) { .video-section h2 { font-size: 20px; } @media (max-width: 480px) { .video-section h2 { font-size: 16px; bottom: 0; } .video-section h3 { font-size: 20px; } .video-section .pattern-overlay { min-height: 200px; padding: 15px; } }
$(document).ready(function () { $(".player").mb_YTPlayer(); });
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76