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

What is Framer? Join the Community
Return to index
Chad Lonberger
Posted Feb 16 - Read on Facebook

Quick question about ScrollComponent... am dynamically adding layers to a ScrollComponent (messages to a chat-window) and want to animate to the bottom as new messages are added. Have tried variations of animating scrollY, scrollToPoint(), etc but whenever I animate the scroll position, it always starts the animation from the top instead of from where the scroll position currently is. Changing originY seems to have no effect.

http://share.framerjs.com/wrb1qm3ckl1k/

6 Comments

Marc Krenn

Could we get your file or an abstraction of it?

Chad Lonberger

Thanks Marc Krenn for the help... Abstracted it: http://share.framerjs.com/wrb1qm3ckl1k/

Marc Krenn

Unfortunately I couldn't figure out how to expand the scroll.content.height, so you can't really scroll through messages :/

http://share.framerjs.com/y318rbemrtzz/

Randi Dumaguet
Chad Lonberger

Great thanks a lot Randi Dumaguet, I had just gotten there after hacking on Marc Krenn's example, yours really cleans it up thanks. Unfortunately it still dies on mobile though once we're over 20 children or so. Marc Krenn: http://share.framerjs.com/y18rirzci2g9/

Randi Dumaguet

No worries Chad, I just added two lines to your code :)

Read the entire post on Facebook