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

What is Framer? Join the Community
Return to index
James Caruso
Posted Jan 17 - Read on Facebook

Curious, is there a way for me to scroll the frame to a certain position? Say, if I'm 3000px from the top of the viewport and I wanted to animate a scroll on click to 0px.

6 Comments

Joshua Tucker

Is your "frame" one layer or a group of layers? Either way, say your layer[s]' y-position is -3000 px (like you said), on a click event, animate that layer[s]' y position to 0. You'll probably want to play around with curve options to get the animation just right.

James Caruso

My "frame" is everything within the viewport. I have all of my layers ties to a super layer and animating that to 0 doesn't seem to work. What I am looking for is the equivalent of an anchor link from the bottom of the frame to the top. So, not animating layers but traversing them. I hope that makes sense :-)

Faheem Patel

Something like this?

James Caruso

I think so! I'm gonna try that out!

Joshua Tucker

Faheem Patel Nice! I was going to suggest looping through the layers, give them a state, and looping through and setting the layers when applicable.

Faheem Patel

Did it work James? If I've understood correctly, this is what you're trying to do? http://cl.ly/0k2h0E050M37

Read the entire post on Facebook