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

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

I know this topic has been discussed many times before, but I can’t seem to figure it out. I’ve created a bunch of repeated elements by using a for loop. I’m stuck on trying to the same event fire for that particular element when clicked

When I click on the collapseGroup on any card, I want the collapseIcon to rotate 90 degrees and the recCardContainer to change its height to 100 (i can use states later, but for now I just chose to .animate). It animates the elements in the 1st element in the array but not its corresponding group.

2 Comments

Nick Bewley

Search this group for closures.

George Kedenburg III

when you write event code in a loop, you cant use the layer names you need to use @ or `this`. here's a quick example

Read the entire post on Facebook