P
P
postya2020-08-30 19:42:44
Images
postya, 2020-08-30 19:42:44

How to replace an svg image with an animated one when hovering over a button/link?

There is one svg image
There is exactly the same image, but already animated
There is a link. to the left of the name in the link there is an svg image.
I want to animate svg. When hovering over a link, you need to substitute an animated one instead of a static image, thereby, as it were, animate the svg image.
How can I do that?

How do I add svg:

<a href="#" target="_blank">
              <img
                src="../assets/images/projects/icons/buttons/eye.svg"
                alt="eye"
                class="link-img"
              />
              <span>View</span>
            </a>


Images

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stepan Voevodin, 2020-09-07
@melpnz

Why would you want to replace them? take the animated one right away and write it in the svg animation so that it starts on hover. Something like this -begin="[id-svg].mouseenter"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question