Skip to content

Instantly share code, notes, and snippets.

@techwraith
Last active August 29, 2015 14:06
Show Gist options
  • Save techwraith/efc53a2ca9d4407b4635 to your computer and use it in GitHub Desktop.
Save techwraith/efc53a2ca9d4407b4635 to your computer and use it in GitHub Desktop.
$(document).scroll(function() {
var top = $(document).scrollTop();
if (top > 300) {
alert('1')
}
else if (top > 600) {
alert('2')
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment