B
B
barsecky2021-06-30 17:15:39
css
barsecky, 2021-06-30 17:15:39

How to change the color of an SVG icon to an animated gradient on hover?

Good afternoon.
The question arose how to change the color of the icon on hover?
I can just change the color, but how to make it a gradient and even animated?
Maybe through JS there is an opportunity to control the color?
I don’t know JS ((I will be glad for any help, preferably with examples.
Thanks in advance.

https://codepen.io/aliakseibarsukov/pen/MWmYVdg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
lagudal, 2021-07-01
@lagudal

did not specify what kind of animation is needed.
As an example

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question