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

What is Framer? Join the Community
Return to index
Alexander Maximets
Posted Nov 25 - Read on Facebook

Hey everyone! Need a bit of a nudge from someone who knows/have found a way around this problem before. I've managed to work out how to change/link states of individual objects in an array with other arrays using a simple for loop, however it's only working with common states for only the button that has been clicked.

My idea is that when you click "menu"tile -> contArray[0].y=0 and contArray[1].y=243; and when you click "login" tile -> contArray[0].y=-243 and contArray[1].y=0
in other words, they both slide in the same direction and the non-selected content is invisible (i.e. clipped)

1 Comments

Floris Verloop

I'm not really sure what you mean, but I've found one thing that might be an issue in your prototype. In the "onClick" event (line 116) you switch the state of just a single layer, not every layer in the array. I assume you want to change states for every layer in "contArray". Check this updated file for a working example: http://share.framerjs.com/n72k06cx30nx/

Let me know if this is not what you're looking for.

Read the entire post on Facebook