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

What is Framer? Join the Community
Return to index
Michael McLaughlin
Posted May 20 - Read on Facebook

Newbie question. How do you modify speed / curve of states.next()?

5 Comments

Kees Plattel

.states.animationOptions = curve: "spring(300, 30, 0)" :)

Michael McLaughlin

Thanks! Just what I was looking for. :)

Aalok Trivedi

this is tough. Are you asking for diff curves for each state of the same layer? If so, i don't think you can. Or at least I haven't found a good solution for it

Michael McLaughlin

Wouldn't that be layerA.states.animationOptions = time: .3 layerB.states.animationOptions = time: .5

Benjamin Den Boer

Aalok Trivedi you can also write: layerA.states.switch("stateB", curve: "spring(400, 30, 0)") :-)

Read the entire post on Facebook