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

What is Framer? Join the Community
Return to index
Blaine Billingsley
Posted Jun 12 - Read on Facebook

is there a way to animate to a *scroll* position programmatically in Framer? Something like scrollTo? Most of the examples use a draggable element to achieve this.

7 Comments

Tor Vegard Tobiassen

Ryhan Hassan Do you still have the shared file ? I get a 404 when I try to open.

Patrick Hansen

I'm dealing with the same issue and haven't had any luck finding a solution. Hopefully someone can chime in on this. I was attempting to animate the y position of the child scrollable layer and then update it mathematically based on the scrollY value of the parent layer once the user scrolls up/down again, but I couldn't get that to work either.

Cemre Güngör

You could do it in a hacky way and import jQuery, which supports animating the scroll position. To get the DOM element corresponding to a framerjs layer, use layer._element

Koen Bok

Ryhan has it. Just remember that animation scroll not so performant (uses the cpu).

Patrick Hansen

awesome! Thanks Ryhan Hassan I didn't realize you had to apply that to the parent layer. Exactly what I was looking for.

Blaine Billingsley

ah hah!!! thank you Ryhan Hassan. i was so close, but so far. you are the bomb!

Read the entire post on Facebook