Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
start animation when you reach certain element...
$(window).scroll(function(){
var top = $(this).scrollTop();
if(top > 150){
//do something after it scrolls down past 150px
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment