Last active
March 12, 2019 12:26
-
-
Save EfremovMS/a7c01e722a6326a513c2d0ed82c1027b to your computer and use it in GitHub Desktop.
JS page scroll event
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 () { | |
// параллакс при прокрутке | |
// - [all] | |
function pagerScroll () { | |
let t = $(window).scrollTop(); | |
// code ... | |
} | |
$(window).scroll(function () { | |
pagerScroll(); | |
}); | |
pagerScroll(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment