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

What is Framer? Join the Community
Return to index
Cameron Wu
Posted Aug 12 - Read on Facebook

I spent a while trying to figure out why scrollToPoint() wasn't fully animating to the right position. I ended up replacing it with scroll.content.animate instead, which did exactly what I wanted to do.

scrollToPoint() seems to ignore arbitrarily set scroll.content.height, and uses contentFrame().height (or something like that) instead - did I observe that right?

2 Comments

Benjamin Den Boer

Hey Cameron Wu - it may be that the {x, y} values you passed into scrollToPoint() were out of bounds - the method doesn't let you do that. In this case, you can indeed animate the y position of the scroll.content directly to animate to a value beyond its bounds.

Koen Bok

Also, hey Cameron, what's up? :-)

Read the entire post on Facebook