O
O
olegmorales132017-08-17 04:09:27
css
olegmorales13, 2017-08-17 04:09:27

How to make an active card?

0cc6442b704644d29d4fc9cee948cf14.jpg
There is a map of the Rostov region. How can you place it on the site in such a way that when you hover over the Millerovsky district, it will light up in a different color and when you click on this area, a link to another site opens?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Stalker_RED, 2017-08-17
@Stalker_RED

Render all areas in SVG and style them on hover.
The simplest example: https://jsfiddle.net/Stalk/4xv4pk8j/1/
There are SVG editors and libraries that make it easier to work with canvas.

A
Andrey Tokmakov, 2017-08-17
@NPC

All google for canvas

I
Ilya, 2017-08-17
@ilyapashkov02

look at this option https://www.react-simple-maps.io/ I also did it through this link https://github.com/DmitryBaranovskiy/raphael yes it is old but it performs its function

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question