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

What is Framer? Join the Community
Return to index
Lynn Liangying
Posted Apr 06 - Read on Facebook

Hi friends, how to select multiple layers at the same time? for example:
part1.animate
properties:
x: -75
y: 20
time: 1
delay: 1.5
what if I want to animate part1, part2,part3 at the same time with the same properties?

2 Comments

Andreas Wahlström

you have to put them inside an array and loop them through. eg.
for part in [part1,part2,part3]
---part.animate()

If you use the find module, you can search for all layers starting with "part" instead of creating the array manually. eg.
for part in ƒƒ('part*')
--part.animate()

https://github.com/awt2542/Find-for-Framer

Ben Rodenhäuser

Basically the same answer Andreas just gave: http://share.framerjs.com/bsek3abechey/ Here, the animation is wrapped in a function which might help keep your code structured.

Read the entire post on Facebook