EstebanDLPT (Talk | contribs) m |
EstebanDLPT (Talk | contribs) m |
||
Line 122: | Line 122: | ||
margin-right: 2.5vw; | margin-right: 2.5vw; | ||
float: right; | float: right; | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
Line 187: | Line 180: | ||
<div class="main-info"> | <div class="main-info"> | ||
</div> | </div> | ||
− | </div> | + | </div> |
− | + | ||
− | + | ||
<div id="hiding-block"> | <div id="hiding-block"> | ||
</div> | </div> | ||
Line 215: | Line 206: | ||
var timeoutVar = setTimeout(function(){$(window).scrollTop(0);},8000); | var timeoutVar = setTimeout(function(){$(window).scrollTop(0);},8000); | ||
− | |||
− | |||
function slideVideo() { | function slideVideo() { | ||
Line 244: | Line 233: | ||
$(window).scroll(function(event) { | $(window).scroll(function(event) { | ||
var scroll = $(window).scrollTop(); | var scroll = $(window).scrollTop(); | ||
− | |||
var scrollOpacity = map(scroll, 0, 350, 1, 0); | var scrollOpacity = map(scroll, 0, 350, 1, 0); | ||
//var scrollFade = map(scroll, 350, 0, 0, 1); | //var scrollFade = map(scroll, 350, 0, 0, 1); | ||
Line 250: | Line 238: | ||
var bacteriaTop = map(scroll, 900, 2000, -100, 100); | var bacteriaTop = map(scroll, 900, 2000, -100, 100); | ||
var bacteriaRotate = map(scroll, 0, 700, 50, 0); | var bacteriaRotate = map(scroll, 0, 700, 50, 0); | ||
− | if ( | + | if (scroll > 3000) { |
$('#bacteria-nadando ').css('opacity','0'); | $('#bacteria-nadando ').css('opacity','0'); | ||
} else { | } else { |
Revision as of 22:34, 12 October 2018