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

What is Framer? Join the Community
Return to index
Giovanni Caruso
Posted Nov 05 - Read on Facebook

Just a quick question: is it possible to assign a gradient color to a layer and then modifying it at a given event?

5 Comments

Emanuele Salamone

You can modify the gradient color, but you cannot animate it directly

Emanuele Salamone

example.style = background : "linear-gradient(45deg, #000, #fff)"

Giovanni Caruso

...mmhh...what is the right syntax to assign the gradient?

Benjamin Den Boer

Emanuele's notation works. One alternative way is:

Giovanni Caruso

Thank you, guys! :)

Read the entire post on Facebook