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

What is Framer? Join the Community
Return to index
Sergey Prostov
Posted Nov 06 - Read on Facebook

Hey, guys, could you help me with my noobiest question? I want to create a mutable gradient bg, but at first i need to know how to add variable into "-webkit-linear-gradient" - all my attempts were unsuccessful ))) Thank you in advance.

2 Comments

Thomas Law

Don't panic. Just write like this: layerA.style.background = "linear-gradient(180deg, #FFFFFF 0%, #000000 100%)"

Thomas Law

You can control gradation's direction by changing "180deg" into other degree.

Read the entire post on Facebook