Last active
August 29, 2015 14:14
-
-
Save mariovalney/b3540af42e59b0a6f837 to your computer and use it in GitHub Desktop.
Evento Scroll de Acordo com a Altura
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
$(document).on('scroll', function () { | |
var altura = pageYOffset; | |
if (altura > 200) { | |
// Macumba pra quando rolar e passar dos 200px do topo | |
} else { | |
// Macumba pra quando rolar e ainda não passar dos 200px do topo | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment