Can we add animation to the gradient. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can we add animation to the gradient.

How can I add animation to the gradients.please help me .

18th May 2018, 8:26 AM
Robin Singh
Robin Singh - avatar
3 Answers
+ 14
No. can't animate gradients on the web. ... between two background gradients using CSS animations ...But wrap this up by adding the transitions.
18th May 2018, 8:31 AM
Abhivarshini Maddala
Abhivarshini Maddala - avatar
+ 2
Sort of. ;) Gradients are actually background images and as such not animateable. But some properties of background images are animateable. https://code.sololearn.com/WzrCtIhUfJ97/?ref=app
18th May 2018, 8:58 AM
Adam
Adam - avatar
+ 2
Technically, no. But using some creative techniques, maybe yes ... Look at this clever code: https://codepen.io/P1N2O/pen/pyBNzX
18th May 2018, 8:59 AM
Jonathan Pizarra (JS Challenger)
Jonathan Pizarra (JS Challenger) - avatar