Created
April 11, 2016 02:29
-
-
Save ginirsss/e283fc8d72992547172df4bd000350c4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function(){ | |
var shrinkHeader = 400; | |
$(window).scroll(function() { | |
var scroll = getCurrentScroll(); | |
if ( scroll == shrinkHeader ) { | |
$('.flechita').fadeIn("slow"); | |
} | |
else { | |
$('.flechita').fadeOut("slow"); | |
} | |
}); | |
function getCurrentScroll() { | |
return window.pageYOffset || document.documentElement.scrollTop; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment