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

What is Framer? Join the Community
Return to index
Ehren Miller
Posted Feb 17 - Read on Facebook

Having difficulty figuring out how to reuse animations. For example: let's say I'm trying to make an unlock screen similar to the default iPhone's. I can make the buttons using a loop and give them each a "pressed" state, but I can't figure out how to make each button switch states when you click it without individually writing out 'button1.onClick -> button1.states.switch("pressed")'.

Any tips?


Ben Rodenhäuser (the buttons array is useful once you need to loop over the buttons later, outside of the creation loop)

Ehren Miller

Perfect! Thanks so much.

Read the entire post on Facebook