javascript - jQuery double animation using the jquery easing plugin -
I want to apply anything like this page:
look at the clicker box in the box Animation running smoothly for one, quad, other animation is easy for InOutSine
How can I do this in my own function?
$ (function () {var iH = window IfHeight + 80; var status = $ (window) .scrollTop (); $ (window) .ccroll (function () {var scroll = $ (window) .scrollTop (); if (scroll> position) {$ ("({Scrollopop: iH}, 1000," easeInOutQuart "). ({ScrollTop: parseInt ($ (Window) .scrollTop ()) - 80}, 1000, "easeInOutQuart"); else if (if scroll The second animate does not work quite well, but it scrolls it out but it's too much Not only does 80 pixels scroll, it scrolls upwards, then the animation goes into an infinite loop, after the second, this sequence will continue to change again and again.
I think its toggle effect is better to use
Comments
Post a Comment