Example of HTML5 Video
Created
January 7, 2015 19:59
-
-
Save SethCalkins/a25e4be3ed86e04959c1 to your computer and use it in GitHub Desktop.
HTML5 Video
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <video autoplay="" loop="" poster="http://artbees.net/themes/jupiter-demo/wp-content/uploads/2013/10/home-vid-img.jpg" id="bgvid"> | |
| <source src="http://artbees.net/themes/jupiter-demo/wp-content/uploads/2013/10/homepage.webm" type="video/webm"> | |
| <source src="http://artbees.net/themes/jupiter-demo/wp-content/uploads/2013/10/shutterstock_v3702740_4.m4v" type="video/mp4"> | |
| </video> | |
| <div class="overlay"> | |
| <h1>HTML5 Video</h1> | |
| <p>HTML5 Video overlay example, quite popular with a lot of creative sites.</p> | |
| <p>View <a target="_BLANK" href="http://demosthenes.info/blog/777/Create-Fullscreen-HTML5-Page-Background-Video">Original</a> demo for best experience.</p> | |
| <p><a target="_BLANK" href="http://codepen.io/doddsy105/full/rtcbE/">Fullscreen</a></p> | |
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Orange Otter Web Design & Build | |
| // www.orange-otter.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| body { | |
| font-family: 'Arimo', sans-serif; | |
| } | |
| video { | |
| position: fixed; | |
| right: 0; | |
| bottom: 0; | |
| min-width: 100%; | |
| min-height: 100%; | |
| width: auto; | |
| height: auto; | |
| z-index: -100; | |
| background-size: cover; | |
| } | |
| /*****************************/ | |
| .overlay { | |
| width: 400px; | |
| height: 400px; | |
| border-radius: 50%; | |
| -webkit-border-radius: 50%; | |
| -moz-border-radius: 50%; | |
| background: rgba(0,0,0,0.3); | |
| display: block; | |
| position: absolute; | |
| top: 10%; | |
| left: 50%; | |
| } | |
| .overlay h1 { | |
| text-align: center; | |
| padding-top: 100px; | |
| color: #fff; | |
| font-family: inherit; | |
| } | |
| .overlay p{ | |
| text-align: center; | |
| width: 80%; | |
| margin: 0 auto; | |
| color: #fff; | |
| font-family: inherit; | |
| margin-bottom: 20px; | |
| } | |
| .overlay a { | |
| color: #fff; | |
| } | |
| .orange { | |
| text-decoration: none; | |
| } | |
| p a.orange { | |
| color: #f27950; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment