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

What is Framer? Join the Community
Return to index
James Matchett
Posted Apr 15 - Read on Facebook

Is it possible to change the background color of a layer in an animation?

4 Comments

Ondrej Rohoň

I thought that this would work, but unfortunately it's not. So I am curious as well.

layer = new Layer
backgroundColor: "red"

layer.states.add
red: {backgroundColor: "red"}
blue: {backgroundColor: "blue"}

Utils.interval 1, () ->
layer.states.next()

Chris Camargo

Color is not a property you can animate at the moment. Your best bet is to use two layers, each with a unique color, and use opacity to transition between them.

Mike Kotsch

Min-Sang did it like this: http://share.framerjs.com/rl65r0efzih8/

Read the entire post on Facebook