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

What is Framer? Join the Community
Return to index
Kyungsik Yoon
Posted Sep 07 - Read on Facebook

Hi, is it possible to change the dimension and position of the scroll object dynamically on events? ie - long press on a part of scroll content triggers the change.
Thanks~

2 Comments

Benjamin Den Boer

Hey Kyungsik Yoon - yes, you can adjust the content, position and size of the content layer within the ScrollComponent. For example, you can remove items from within the scroll.content layer, then call the updateContent method do automatically re-calculate the correct height. To change the scrolling position, you can adjust the scrollY property as well. :-)

scroll.updateContent()
scroll.scrollY = 400

Kyungsik Yoon

this is super helpful! Thanks Ben

Read the entire post on Facebook