How to animate background gradient of a button by web sources? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

How to animate background gradient of a button by web sources?

I mean running patch of reflected light.

9th May 2019, 2:31 PM
Сергей Чернышов
Сергей Чернышов - avatar
3 Answers
- 1
background: linear-gradient(blue 20%, yellow 30%, green 85%) and use js to change %%
9th May 2019, 2:33 PM
Сергей Чернышов
Сергей Чернышов - avatar
- 1
But percentage of a gradient goes wrong so I didn't still ( Any ideas?
9th May 2019, 4:09 PM
Сергей Чернышов
Сергей Чернышов - avatar
- 1
Shame on me. Understood start points in gradient parameters.
9th May 2019, 5:16 PM
Сергей Чернышов
Сергей Чернышов - avatar