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

What is Framer? Join the Community
Return to index
Marco Paglia
Posted Sep 02 - Read on Facebook

Hey guys,
is there a way to animate the properties inside a gradient?

i.e. if I have this piece of code:
bg.style.background = "-webkit-linear-gradient(top, #28AFFA 0%, black 100%)"

Could I animate the %, the colors etc. between different states?

1 Comments

Jordan Robert Dobson

You'd either have to create a proxy layer to manipulate it for you... Or you'd likely want to use CSS animations / transitions.

Read the entire post on Facebook