Hi! I have problem with onMove events.
scroll.onMove -> if scroll.scrollY > 230 animation4.start() animation5.start() animation6.start() animation7.start()
My animations end only when scroll is not active (stop).(when I scroll slowly, my animation also is slowly…)
I want to start my animations regardless of scroling.Thanks for your help!
Hi Karol! The animations are slow because you are restarting the animations each frame. The onMove event is called 60 times per second while moving. You should only start the animations if they are not already running.
If you use states you can check if the layer isn't already animating to a certain state: