STYLE SWITCHER

Scroll animation using jquery

jquery_black

var scrolled = false;

$(window).scroll(function () {

if (650 < $(window).scrollTop() && !scrolled) {
——————————-animation here——————————
scrolled = true;
}

if (650 > $(window).scrollTop() && scrolled) {
——————————-animation here——————————
scrolled = false;
}
});

Recent Article

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.