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

What is Framer? Join the Community
Return to index
Aalok Trivedi
Posted May 12 - Read on Facebook

Hey all. I have 2 buttons in an array (likeButtons = [like1, like2]). When one button is clicked, the other disappears. When the same button is clicked, the other reappears again. I have that part working fine.

What I want is to have a specific layer (commentInput) to change states only when like1 (the first item of the array) is clicked. Im struggling to make that happen. Any suggestions?

2 Comments

Benjamin Den Boer

Hey Aalok Trivedi — this is likely easiest to achieve outside of your loops:

like1.onClick ->
____commentInput.states.next()

Aalok Trivedi

Thanks. I swear I tried that and it didn't work. Maybe I put it in the wrong place. I'll try again

Read the entire post on Facebook