Is there a way to independently scale a specific polygon of an image on hover?
For example, I have a world map and I would like to enlarge a country when hovering over it, then return it to its original size when no longer hovering.
I am familiar with using transform: scale(2)
in CSS for scaling images, but I specifically want to target only a portion of the map, such as a polygon or square shape.
Is there a method to achieve this effect? It doesn't necessarily need to be done with CSS alone, JavaScript/jQuery solutions are also welcome.
The hover functionality is simple to implement with jQuery, my main question is how to selectively scale a particular section of an image. Any help is appreciated!