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.
Don't panic. Just write like this: layerA.style.background = "linear-gradient(180deg, #FFFFFF 0%, #000000 100%)"
You can control gradation's direction by changing "180deg" into other degree.