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

What is Framer? Join the Community
Return to index
Luis Ricardo La Torre
Posted May 17 - Read on Facebook

Yellow underline lag: I'm having a tiny issue swapping images between states, maybe I should do it in a different way, but right now I get a bit of a lag when the yellow paragraph is supposed to go back to the original state.
http://share.framerjs.com/qwpgh1mf5e8f/

1 Comments

Benjamin Den Boer

Hey Luis Ricardo La Torre, this is happening because state switches (or cycles with next()) have a default time and curve set by default. So it tries to animate the image property (which isn't animatable), effectively producing a 1 second delay (the default time). A quick fix here would be to add the following animationOptions:

$P.firstP.states.animationOptions =
____curve: "linear"
____time: 0

Read the entire post on Facebook