Answer the question
In order to leave comments, you need to log in
How to already use these SVGs?
Good afternoon, I can’t figure out how to work with these SVGs. Just so that when hover could change color and so on. I searched in Google BUT
1) it doesn’t go through an object, you can’t set fill on hover, it blocks
2) insert it like code, it works, but it really spoils the html structure.
Are there already other ways, or do I need to include a JS library that expands the svg code:?
Answer the question
In order to leave comments, you need to log in
hover works on svg but not everywhere, i.e. not cross-browser
hover behavior / event should be replaced with js: onmouseover + onmouseout
you can insert / apply svg as an img tag, object, background
is often used as use, simbol well, or just like svg
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question