My goal is to create a unique interaction between links and images, where hovering over a link will transform the corresponding image below it, and vice versa. I have been searching for solutions but have only found methods that work when all items are within the same container. Here is an overview of my current setup:
HTML:
<ul class="links">
<li><a href="https://...1">LINK 1</a></li>
<li><a href="https://...2">LINK 2</a></li>
<li><a href="https://...3">LINK 3</a></li>
</ul>
<div class="images">
<a href="https://...1">
<img src="1.png">
</a>
<a href="https://...2">
<img src="2.png">
</a>
<a href="https://...3">
<img class="ssoverview" src="3.png">
</a>
</div>
CSS:
a:hover {
cursor: pointer;
}
.images a img {
width: 33.33%;
float: left;
transition: transform .2s;
}
.images a img:hover {
transition: transform .2s;
transform: scale(1.4);
}