A
A
Anton2015-09-11 19:14:30
JavaScript
Anton, 2015-09-11 19:14:30

What is the best way to implement an image map?

Hello! It is necessary that when hovering over the image, its part is highlighted, as in this example . In addition, each highlighted element must have its own id, upon clicking on which a pop-up window will be called. The first thing that comes to mind is a few divs with absolute positioning, but in this case adaptability is lost (and in general, this is somehow ugly). What other options are there?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Denis Ineshin, 2015-09-11
@IonDen

In your example, the SVG is clearly visible. Use d3js.org

R
Rafael™, 2015-09-11
@maxminimus

And you didn’t think about the billion viewers of this site who have nothing on their tablet to point to something
Mobile first is like a grit

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question