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

What is Framer? Join the Community
Return to index
Jiaxin Chen
Posted Aug 06 - Read on Facebook

hey guys, I am wondering how can I make different *scrollable* layers in different tab? Now my prototype can only scroll the first .wrap layer.

9 Comments

Jordan Robert Dobson

Do you have multiple tabs in your app? It's hard to say where your code went wrong. Can you share it?

Benjamin Den Boer

Hey Chen - if you're looking to create mulitple scrollable pages that can be swiped as well - you can achieve this by wrapping all of your ScrollComponents in a PageComponent as well. See this example → http://framerjs.com/examples/preview/#medium-app.framer

Jiaxin Chen

Thanks for reply. I just want to scroll every content in their corresponding pages. I tried to use ".wrap" but found only one page can scroll, then I use "layer.superLayer = XXXScroll.content", and it doesn't work too. So I suppose these code can only use once? ( sorry for my poor English, and I don't know how to mention a person in Groups. )

Jiaxin Chen

I will share my code tomorrow morning, thanks guys! ( I'm in China )

Jordan Robert Dobson

Yes you can only use the code once... you must setup two scrollers.

Jiaxin Chen

Hmm... I mean I use the code for each content, but just the last one work.

Jiaxin Chen

This is my code at the moment ~

Jordan Robert Dobson

I don't see you ever hiding either scroll component. So one is blocking the others.

You'll want to do FeedScroll.visible = false most likely.

Jiaxin Chen

Yes! It works! Thanks! Code:

Read the entire post on Facebook