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

What is Framer? Join the Community
Return to index
Patrik Makrai
Posted Nov 26 - Read on Facebook

Is there any reason why "style" changes doesn't work while changing states of a layer? Has any of you encountered this problem?

3 Comments

Benjamin Den Boer

Hey Patrik, only layer properties can be animated. You can change style properties based on state switches, though:

if layerA.states.current is "stateB"
____layerA.style.color = "blue"

Patrik Makrai

yeah, I figured that out already, but thanks

John Anthony Evans

You can make those properties animate if you manually extend the Layer class. I use that technique to animate type and previously colours.

Read the entire post on Facebook