Z
Z
Zankur2017-02-19 04:13:03
JavaScript
Zankur, 2017-02-19 04:13:03

How to implement hover effect using SVG as an example?

Hello!
I have an SVG image and some divs with display:none property. There are zones on the image when hovering over which those same divs should appear (actually display: block). I can’t implement this task in any way, I’m not strong in JS, but I understand that it is necessary to use it.
Used jquery hover event - didn't manage to hide divs back. What is the best way to implement the task?
link to pen with svg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Bob Hope, 2017-02-23
@Zankur

Hello, I sketched a simple jQuery solution:
codepen.io/glebez/pen/oZNBjM

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question