L
L
lilwondermelo2017-03-04 11:41:45
css
lilwondermelo, 2017-03-04 11:41:45

How to apply a filter to an SVG image?

jsfiddle.net/lilwondermelo/tsa9015b/
Q: How do I apply a filter to the entire image when hovering over only its elements? (In this case, polygons). That is, so that it does not work when hovering over a colorless background.
When you apply the filter to the group classes or the polygons themselves, nothing happens.
And is it possible to make the background of an SVG image transparent to a mouse click or remove it altogether?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2017-03-04
@lilwondermelo

That is, so that it does not work when hovering over a colorless background.

Well, do not apply hover to everything, but to the part where it is needed. Like this:
https://jsfiddle.net/tsa9015b/2/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question