Created
October 18, 2018 12:58
-
-
Save kn0ckkn0ck1/aa5f4d869ce7c86438caaa53d31be69c to your computer and use it in GitHub Desktop.
Full screen video, example from demosthene.info by // source https://jsbin.com/feripecuka
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Full screen video, example from demosthene.info by </title> | |
<style id="jsbin-css"> | |
body { | |
margin:0; | |
padding:0; | |
overflow:hidden; | |
} | |
video { | |
width:100%; | |
height:auto; | |
} | |
</style> | |
</head> | |
<body> | |
<header> | |
<video style="width: 1457px; height: auto; visibility: visible;" | |
autoplay="autoplay" | |
muted="muted" | |
loop | |
poster="https://mainline.i3s.unice.fr/mooc/uk-brand-campaign.jpg"> | |
<source src="http://mainline.i3s.unice.fr/mooc/uk-brand-campaign.mp4" | |
type="video/mp4"> | |
<source src="http://mainline.i3s.unice.fr/mooc/uk-brand-campaign.webm" | |
type="video/webm"> | |
</video> | |
</header> | |
<section> | |
<h1>Paypal video full screen using only CSS</h1> | |
</section> | |
<script id="jsbin-source-css" type="text/css"> body { | |
margin:0; | |
padding:0; | |
overflow:hidden; | |
} | |
video { | |
width:100%; | |
height:auto; | |
}</script> | |
</body> | |
</html> |
This file contains 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 { | |
margin:0; | |
padding:0; | |
overflow:hidden; | |
} | |
video { | |
width:100%; | |
height:auto; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment