I have 1 in the upper left corner of the page, mostly off-screen, which functions as a home button. I would like to slightly increase its size when it hangs, but nothing seems to work.
Seeing how an image is a vector, which (thank God) is an ideal circle. Thus, with the area tag, I could easily make it the home button. Now I would like to enlarge the image, hovering over the area tag, I tried working with the "+" selector.
How do I do something like this?
This is a code snippet for some context:
.emblem {
width: 200px;
height: 200px;
position: absolute;
margin: -100px 0px 0px -80px;
z-index: 2;
opacity: 0.9;
}
.emblem:hover {
width: 220px;
height: 220px;
}
.emblem2 {
visibility: hidden;
width: 220px;
height: 220px;
}
area:hover + .emblem2 {
visibility: visible;
}
<map name="homemap">
<area shape="circle" coords="100,100,100" alt="Home button" href="index.html" />
</map>
<img class="emblem" src="https://placeholdit.imgix.net/~text?txtsize=33&txt=350%C3%97150&w=350&h=150" alt="UFF emblem" usemap="#homemap" />
<img class="emblem2" src="https://placeholdit.imgix.net/~text?txtsize=33&txt=350%C3%97150&w=350&h=150" alt="UFF emblem" usemap="#homemap" />
Run codeNow it works great ... But only when I hang over the transparent part of the image, and what I want to achieve is the exact opposite.