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

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

Hi, everyone! I am nub in FramerJS.

I am making some test with lists and cycles. And I don't understand how to get access to any layer after I create them during cycle

I want to change background color according to color of layer you drag or to change opacity of draggable layer



Thomas Rekers

Add the event listener to the loop, so that all layers will listen to the DragMove event. And then use "this" or "@" to only refer to the variable layer that is being dragged.

Anton Kartashov

Hey Sergey. Also you can "push" all the "layers A" into one array and get them from there: layersArray[0], layersArray[1], layersArray[2]…

Read the entire post on Facebook