Skip to content

Instantly share code, notes, and snippets.

@aj-may
Created January 26, 2015 20:39
Show Gist options
  • Save aj-may/0cb9004d2adcaccd5799 to your computer and use it in GitHub Desktop.
Save aj-may/0cb9004d2adcaccd5799 to your computer and use it in GitHub Desktop.
Fullscreen Intro Video
<script type="text/javascript">
function videoInit(videoFrame) {
videoFrame.width=window.innerWidth;
videoFrame.height=window.innerHeight;
setTimeout(function() {
var videoOverlay = videoFrame.parentNode
videoOverlay.parentNode.removeChild(videoOverlay);
}, 10*1000);
}
</script>
<div id="video-overlay" style="position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 900;">
<iframe onload="videoInit(this);" src="http://player.vimeo.com/video/116879450?title=0&amp;byline=0&amp;portrait=0&amp;autoplay=1" width="500" height="213" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment