Answer the question
In order to leave comments, you need to log in
SVG ignore hover, how to make it work?
We have an SVG with a color change on hover - .str0:hover { stroke:red; fill: blue }
If this SVG is inserted into the page, then everything works. However, if it is used as an img image - <img src="img/class-offline.svg">
- then the hover will not work. Any attempt to change the CSS of this image with javaScript also fails.
What to do?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question