Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * jQuery check scroll top
- */
- $(window).scroll(function() {
- if ( $(this).scrollTop() === 0 ) { /* window scroll to top */
- /* Do something */
- } else {
- /* Do something */
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement