Bioluminati (Talk | contribs) |
Bioluminati (Talk | contribs) |
||
Line 15: | Line 15: | ||
margin: auto; | margin: auto; | ||
} | } | ||
+ | .parallax { | ||
+ | /* The image used */ | ||
+ | background-image: url("https://static.igem.org/mediawiki/2018/0/02/T--IIT_Kanpur--IHP_Banner.mp4"); | ||
+ | |||
+ | /* Set a specific height */ | ||
+ | height: 800px; | ||
+ | |||
+ | /* Create the parallax scrolling effect */ | ||
+ | background-attachment: fixed; | ||
+ | background-position: center; | ||
+ | background-repeat: no-repeat; | ||
+ | background-size: cover; | ||
+ | } | ||
</style> | </style> | ||
− | <div class=" | + | <div class="parallax"> |
− | + | ||
− | + | ||
− | + | ||
</div> | </div> | ||
+ | |||
+ | <source src="https://static.igem.org/mediawiki/2018/0/02/T--IIT_Kanpur--IHP_Banner.mp4" type="video/mp4"> | ||
<style> | <style> | ||
blockquote{ | blockquote{ |
Revision as of 10:46, 17 October 2018