When scrolling to a certain point y (scrollY), I want to slide in an element using the event Move.
Using Move, when you scroll up fast, the animation is really slow because it keeps refreshing in the background. How do I make sure it only animates once?
try put scroller.move function into scroller.onScroll function.
I'm posting an example, i've spent hours on this and can't figure out.
I got the solution thanks to Floris Verloop. Essentially, the move event is refreshing 60 times a second in the background which is what causes the lag. Please check the file for the code.