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

What is Framer? Join the Community
Return to index
Matthew Mang
Posted Jul 26 - Read on Facebook

Hey everyone, I’ve got my prototype working in a semi-hacking way, but I was wondering if anyone knows how to do this in a non-hacking way.

Currently, the way I’m able to animate child elements of the copy is by targeting the element via the correct index of the children array. This works ok when there are only two elements to animate, but I’d like to add more animating elements. Is there a way to target child elements accurately other than using the correct index in the children array?

1 Comments

Derek Nguyen

I can't find the part where you target child elements with children array index? maybe you've already updated?
Anyhow, I think you didn't need to have 2 `for` loops — you can probably define the layers & its behavior in one loop. Maybe you can also look into turning the container into a class & define children using `this.image` or `@image` — this way you can refer to them again by their name (e.g if your class is Place, your instance is place, you can refer to children with `place.image`)

Read the entire post on Facebook