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

What is Framer? Join the Community
Return to index
Dexter Wang
Posted Feb 07 - Read on Facebook

Hi Framers,

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?

https://framer.cloud/UPTap/

Thanks. [edited]

3 Comments

李宝明

try put scroller.move function into scroller.onScroll function.

Dexter Wang

I'm posting an example, i've spent hours on this and can't figure out.

Dexter Wang

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.

Read the entire post on Facebook