Davidacevedo (Talk | contribs) |
Davidacevedo (Talk | contribs) |
||
Line 639: | Line 639: | ||
$(document).on('scroll', function() { | $(document).on('scroll', function() { | ||
if($(this).scrollTop()>=$('#gifDiv').position().top){ | if($(this).scrollTop()>=$('#gifDiv').position().top){ | ||
− | $("#gifDiv").fadeOut(); | + | $("#gifDiv").css("background-color: green;"); |
+ | setTimeout(function(){ $("#gifDiv").fadeOut(); }, 1600); | ||
} | } | ||
}); | }); | ||
− | |||
− | + | ||
− | + | ||
document.addEventListener("DOMContentLoaded", function(event) { | document.addEventListener("DOMContentLoaded", function(event) { | ||
// target elements with the "draggable" class | // target elements with the "draggable" class | ||
Line 917: | Line 916: | ||
slideVideo(); | slideVideo(); | ||
}); | }); | ||
+ | |||
+ | |||
</script> | </script> | ||
<script type="text/javascript" src="https://2018.igem.org/Team:Purdue/JQuery/SlideShow? | <script type="text/javascript" src="https://2018.igem.org/Team:Purdue/JQuery/SlideShow? |
Revision as of 17:04, 17 October 2018
E. coding
Tec-Monterrey