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

What is Framer? Join the Community
Return to index
Javier Eduardo Treviño
Posted Aug 13 - Read on Facebook

how can I make an animation take part of a state that repeats itself ?

4 Comments

Jordan Robert Dobson

I'm not clear on what you are asking.

Rafael Marin

States only save properties and transition between those properties for you. If you want to trigger other pieces of code, what you can do is listen to a state changes of a layer, then execute the desired piece of code. Check this out: http://framerjs.com/docs/#events.state

Rafael Marin

Alternatively, you could listen to the animationEnd event of a layer to trigger the other's animation.

Rafael Marin

layerA.onAnimationEnd ->
layerB.states.next()

layerB.onAnimationEnd ->
layerA.states.next()

Read the entire post on Facebook