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

What is Framer? Join the Community
Return to index
Afnizar Nur Ghifari
Posted Aug 14 - Read on Facebook

Hi guys, anyone knows, how to add events to looped sublayers?

3 Comments

Rohan K

if you are looking to add events to multiple layers in a layer group, you can try this:
for layers in layerGroup.children
- layer.on "event", ->
-- # do stuff (you can us "this" keyword in this function when referring to the layer)

is this what you are looking for?

Afnizar Nur Ghifari

Great thank you! Rohan K Onishchenko Volodymyr

Read the entire post on Facebook