Line 22: | Line 22: | ||
$(window).scroll(function() { | $(window).scroll(function() { | ||
console.log($(window).scrollTop()); | console.log($(window).scrollTop()); | ||
− | if ($(window).scrollTop() > | + | if ($(window).scrollTop() > 500) { |
$("#nugget").fadeOut("slow"); | $("#nugget").fadeOut("slow"); | ||
$(".testtext").delay(500).fadeIn("slow"); | $(".testtext").delay(500).fadeIn("slow"); |
Revision as of 20:10, 8 August 2016