This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Karol Piwowarczyk
Posted Jan 30 - Read on Facebook

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!

2 Comments

Jonas Treub

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.

Jonas Treub

If you use states you can check if the layer isn't already animating to a certain state:

Read the entire post on Facebook