Line 1: | Line 1: | ||
{{:Team:TU-Eindhoven/NavMenu}} | {{:Team:TU-Eindhoven/NavMenu}} | ||
<html> | <html> | ||
− | + | <head> | |
− | + | <style> | |
+ | body, html { | ||
+ | height: 100%; | ||
+ | margin: 0; | ||
+ | font: 400 15px/1.8 "Lato", sans-serif; | ||
+ | color: #777; | ||
+ | } | ||
− | + | .bgimg-1, | |
+ | .bgimg-2, | ||
+ | .bgimg-3 { | ||
+ | position: relative; | ||
+ | /* opacity: 0.65; */ | ||
+ | background-attachment: fixed; | ||
+ | background-position: center; | ||
+ | background-repeat: no-repeat; | ||
+ | background-size: cover; | ||
+ | } | ||
+ | .bgimg-1 { | ||
+ | background-image: url("/images/frontpage/center.jpg"); | ||
+ | min-height: 500px; | ||
+ | } | ||
+ | |||
+ | .bgimg-2 { | ||
+ | background-image: url("/images/frontpage/plazza.jpg"); | ||
+ | min-height: 400px; | ||
+ | } | ||
+ | |||
+ | .bgimg-3 { | ||
+ | background-image: url("/images/frontpage/sissy.jpg"); | ||
+ | min-height: 400px; | ||
+ | } | ||
+ | |||
+ | .caption { | ||
+ | position: absolute; | ||
+ | left: 0; | ||
+ | top: 50%; | ||
+ | width: 100%; | ||
+ | text-align: center; | ||
+ | color: #000; | ||
+ | } | ||
+ | |||
+ | .caption span.border { | ||
+ | background-color: #111; | ||
+ | color: #fff; | ||
+ | padding: 18px; | ||
+ | font-size: 25px; | ||
+ | letter-spacing: 10px; | ||
+ | } | ||
+ | |||
+ | h3 { | ||
+ | letter-spacing: 5px; | ||
+ | text-transform: uppercase; | ||
+ | font: 20px "Lato", sans-serif; | ||
+ | color: #111; | ||
+ | } | ||
+ | |||
+ | /* Turn off parallax scrolling for tablets and phones */ | ||
+ | @media only screen and (max-device-width: 1024px) { | ||
+ | .bgimg-1, | ||
+ | .bgimg-2, | ||
+ | .bgimg-3 { | ||
+ | background-attachment: scroll; | ||
+ | } | ||
+ | } | ||
+ | .jumbotron{ | ||
+ | padding:0; | ||
+ | } | ||
+ | video#bgvid { | ||
+ | /* position: fixed; | ||
+ | top: 50%; | ||
+ | left: 50%; */ | ||
+ | width: 100%; | ||
+ | /* height: auto; */ | ||
+ | z-index: -100; | ||
+ | /* -ms-transform: translateX(-50%) translateY(-50%); | ||
+ | -moz-transform: translateX(-50%) translateY(-50%); | ||
+ | -webkit-transform: translateX(-50%) translateY(-50%); */ | ||
+ | /* transform: translateX(-50%) translateY(-50%); */ | ||
+ | background: url(/images/VIDEO-IGEM_Trim.mp4_snapshot_00.21_[2018.10.17_14.30.27].jpg) no-repeat; | ||
+ | /* background-size: cover; */ | ||
+ | margin-bottom:-10px; | ||
+ | } | ||
+ | .video-text, | ||
+ | .videoCtrl { | ||
+ | position: absolute; | ||
+ | top: 50%; | ||
+ | left: 50%; | ||
+ | transform: translateX(-50%) translateY(-50%); | ||
+ | |||
+ | /* font-size: 7vw; */ | ||
+ | line-height: 1.5em; | ||
+ | color: rgb(141, 49, 194); | ||
+ | text-align: center; | ||
+ | font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; | ||
+ | /* display: none; */ | ||
+ | } | ||
+ | .playBtn { | ||
+ | background-color:transparent; | ||
+ | border-width: 0px; | ||
+ | } | ||
+ | .playBtn img { | ||
+ | width:100px; | ||
+ | opacity:0.2; | ||
+ | } | ||
+ | .playBtn:hover img { | ||
+ | opacity:0.7; | ||
+ | } | ||
+ | #videoModal video { | ||
+ | width: 80%; | ||
+ | margin:0 auto; | ||
+ | top: 50%; | ||
+ | left: 50%; | ||
+ | transform: translateX(12.5%) translateY(10%); | ||
+ | } | ||
+ | #videoModal { | ||
+ | padding-top:0; | ||
+ | } | ||
+ | .closeFigure { | ||
+ | position:fixed; | ||
+ | top:100px; | ||
+ | right:100px; | ||
+ | } | ||
+ | </style> | ||
+ | </head> | ||
+ | |||
+ | <div class="jumbotron neat"> | ||
+ | <video id="bgvid" playsinline autoplay muted loop poster="https://static.igem.org/mediawiki/2018/a/ad/T--TU-Eindhoven--homepageVideoThumbnail.jpeg"> | ||
+ | <source src="https://static.igem.org/mediawiki/2018/5/5c/T--TU-Eindhoven--FullscreenVideo.mp4" type="video/mp4"> | ||
+ | </video> | ||
+ | <!-- <div class="video-text"> | ||
+ | Welcome to GelCatraz! | ||
+ | </div> --> | ||
+ | <div class="videoCtrl"> | ||
+ | <button class="playBtn" onclick="showVideoModal(this)" data-vid-url="https://static.igem.org/mediawiki/2018/5/5c/T--TU-Eindhoven--FullscreenVideo.mp4"> | ||
+ | <img src="https://static.igem.org/mediawiki/2018/d/dc/T--TU-Eindhoven--VideoPlayBtn.png"> | ||
+ | </button> | ||
+ | </div> | ||
+ | </div> | ||
+ | |||
+ | <div class="container-fluid"> | ||
<div class="row"> | <div class="row"> | ||
− | <div | + | <div> |
− | + | <!-- if our video is ready --> | |
− | + | </div> | |
− | + | <div class="bgimg-1"> | |
− | + | <div class="caption"> | |
− | + | <span class="border">WELCOME TO GELCATRAZ</span> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
</div> | </div> | ||
</div> | </div> | ||
− | + | ||
− | + | <div style="color: #777;background-color:white;text-align:center;padding:50px 20%;text-align: justify;"> | |
− | + | <h3 style="text-align:center;">Narrow Demo</h3> | |
− | <div | + | <p>Parallax scrolling is a web site trend where the background content |
− | + | is moved at a different speed than the foreground content while | |
− | + | scrolling. Nascetur per nec posuere turpis, lectus nec libero turpis | |
− | + | nunc at, sed posuere mollis ullamcorper libero ante lectus, blandit | |
− | + | pellentesque a, magna turpis est sapien duis blandit dignissim. Viverra | |
− | + | interdum mi magna mi, morbi sociis. Condimentum dui ipsum consequat | |
− | + | morbi, curabitur aliquam pede, nullam vitae eu placerat eget et | |
− | + | vehicula. Varius quisque non molestie dolor, nunc nisl dapibus | |
− | + | vestibulum at, sodales tincidunt mauris ullamcorper, dapibus pulvinar, | |
− | + | in in neque risus odio. Accumsan fringilla vulputate at quibusdam sociis | |
− | + | eleifend, aenean maecenas vulputate, non id vehicula lorem mattis, | |
− | + | ratione interdum sociis ornare. Suscipit proin magna cras vel, non sit | |
+ | platea sit, maecenas ante augue etiam maecenas, porta porttitor placerat | ||
+ | leo.</p> | ||
+ | </div> | ||
+ | |||
+ | <div class="bgimg-2"> | ||
+ | <div class="caption"> | ||
+ | <span class="border" style="background-color:transparent;font-size:25px;color: #f7f7f7;">LESS HEIGHT</span> | ||
</div> | </div> | ||
− | + | </div> | |
− | + | ||
− | + | <div style="position:relative;"> | |
− | + | <div style="color:#ddd;background-color:#282E34;text-align:center;padding:50px 20%;text-align: justify;"> | |
− | + | <p style="color:#ddd;">Scroll up and down to really get the feeling of how Parallax Scrolling works.</p> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
</div> | </div> | ||
− | |||
</div> | </div> | ||
− | + | ||
− | + | <div class="bgimg-3"> | |
− | + | <div class="caption"> | |
− | < | + | <span class="border" style="background-color:transparent;font-size:25px;color: #f7f7f7;">SCROLL UP</span> |
− | < | + | </div> |
− | + | </div> | |
− | < | + | |
− | + | <div style="position:relative;"> | |
− | + | <div style="color:#ddd;background-color:#282E34;text-align:center;padding:50px 20%;text-align: justify;"> | |
− | <! | + | <p style="color:#ddd;">Scroll up and down to really get the feeling of how Parallax Scrolling works.</p> |
− | <div | + | </div> |
− | + | </div> | |
+ | |||
+ | <div class="bgimg-1"> | ||
+ | <div class="caption"> | ||
+ | <span class="border">COOL!</span> | ||
+ | </div> | ||
+ | </div> | ||
+ | </div> | ||
</div> | </div> | ||
</html> | </html> | ||
{{:Team:TU-Eindhoven/footer}} | {{:Team:TU-Eindhoven/footer}} |
Revision as of 19:49, 17 October 2018
Narrow Demo
Parallax scrolling is a web site trend where the background content is moved at a different speed than the foreground content while scrolling. Nascetur per nec posuere turpis, lectus nec libero turpis nunc at, sed posuere mollis ullamcorper libero ante lectus, blandit pellentesque a, magna turpis est sapien duis blandit dignissim. Viverra interdum mi magna mi, morbi sociis. Condimentum dui ipsum consequat morbi, curabitur aliquam pede, nullam vitae eu placerat eget et vehicula. Varius quisque non molestie dolor, nunc nisl dapibus vestibulum at, sodales tincidunt mauris ullamcorper, dapibus pulvinar, in in neque risus odio. Accumsan fringilla vulputate at quibusdam sociis eleifend, aenean maecenas vulputate, non id vehicula lorem mattis, ratione interdum sociis ornare. Suscipit proin magna cras vel, non sit platea sit, maecenas ante augue etiam maecenas, porta porttitor placerat leo.
Scroll up and down to really get the feeling of how Parallax Scrolling works.
Scroll up and down to really get the feeling of how Parallax Scrolling works.