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

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

Is there any way that I can set the 'start point' while using scroll related functions(like scrollToPoint or scrollToLayer)? It seems that when I use scrollToPoint or scrollToLayer, it scrolls from the very top of the scroll.content.

4 Comments

Min-Sang Choi

yourscrolllayername.scrollY = yourvalue (eg. 300)

YoungIm Jo

Thanks!

YoungIm Jo

Setting scrollY didn't work for me when I add layer(s) to the scroll.content and call to scroll. It seems that adding layer to the scroll.content set the scroll.content.y 0..

Min-Sang Choi

Not really sure what are you trying to achieve. But if you want to add a padding inside of scroll.content, you can use scroll.contentInset feature. http://share.framerjs.com/kdpntke7ct29/

Read the entire post on Facebook