S
S
Sergey Burduzha2018-06-28 00:53:47
SVG
Sergey Burduzha, 2018-06-28 00:53:47

How to insert an svg icon into an html file so that you can change the stroke color on hover?

I have an icon, I opened it in the editor
5b34074c45435809494721.jpeg
How can I change the hover color and can I optimize the icon?
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
A person from Kazakhstan, 2018-06-28
@serii81

I will not reprint SVG, but I will say this: any vector graphics do not work cross-browser on hover and therefore they came up with a bunch of different libraries svg.js tween.js , etc., it is very necessary to use modernizr.js
smil animation - not supported in IE11 and below and is not supported in Edge , in English stackoverflow questions often appear "how to do this for Edge" on the same hongikat.com there is a whole controversy on this topic, but their examples when viewed in IE or Edge also do not work
here is a similar topic on Russian resource ... with a useful link to git

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question