D
D
DeniSidorenko2018-06-24 13:19:22
SVG
DeniSidorenko, 2018-06-24 13:19:22

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

1 answer(s)
A
A person from Kazakhstan, 2018-06-24
@LenovoId

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 question

Ask a Question

731 491 924 answers to any question