I’m trying to make a hover image appear over an image but only when I hover over a certain area of the image, can’t seem to get an area map to fit into the code I already have. Help would be much appreciated.
.overlay-image .hover {
position: relative;
left: 1084;
height: 2;
width: 3;
transform: rotate(341deg);
opacity: 3;
transition: .8s ease;
}
.maine .hover {
position: absolute;
width: 125;
height: 150;
top: 58;
left: 1084;
}
.overlay-image .hover {
position: absolute;
top: 58;
height: 2px;
width: 3px;
opacity: 0;
transition: .8s ease;
}
/* New overlay appearance on hover */
.overlay-image:hover .hover {
opacity: 1;
}
<div class="overlay-image">
<a href="LINK_URL">
<img class="image" src="https://i.imgur.com/bn03Ndw.png" alt="Alt text" />
<div class="normal">
<div class="text">Image + text ORIGINAL
</div>
</div>
<div class="hover" align="1084,58">
<img class="image" src="https://i.imgur.com/lN2UnH2.png" alt="Alt text hover" width="125" height="150" />
<div class="text"></div>
</div>
</a>
</div>