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

What is Framer? Join the Community
Return to index
Noam Elbaz
Posted Nov 19 - Read on Facebook

box_animation = new Animation({
layer: box
properties: {y: 400}
})
How can I include multiple layers and parts in an animation?
Is something like this possible?
boxes_animation = new Animation({
layer: box1
properties: {y: 400}
layer: box2
properties: {x: 400}
layer: box3
properties: {scale: 2}
})

6 Comments

Seoh Char

I prefer to use this way.

Noam Elbaz

Seoh Char let me make sure I understand.... what I want is 4 different animations to be grouped together.... start together and reverse animation together - using .reverse()... I dont want to have to create 4 seperate animations and reverse them seperately.

Benjamin Den Boer

Hey Noam Elbaz, few different ways you could go about this.

Using .animate:
https://www.facebook.com/photo.php?fbid=673458366101972&set=p.673458366101972&type=1&permPage=1

Noam Elbaz

Benjamin Den Boer thanks alot. Functions! didnt think of that. 3 animations grouped with a function and their reverse. And using your syntax, I can throw any layer I want in to it.

Read the entire post on Facebook