+ 6
Linear gradient
How can I change the background color to linear-gradient (on button click)?
4 Answers
+ 4
I tried document.getElementById(""). Style.background = "linear-gradient(to right, red, black)"
But it didn't work...
+ 3
What is ""
+ 1
Hereâs a full tutorial on CSS Graidents including how to use the linear-gradient property: https://youtu.be/TYHFe4L9bfo