I have implemented a menu on my site in two different ways - one using text and the other using pictures. Users can click on both types of menus.
Now, I am looking to create an interactive feature where hovering over a specific item in the text menu (such as number 2) will automatically change the picture with the corresponding number (e.g. image under number 2).
Here is the code for the text menu:
<ul>
<li class="page_item">
<a href="#">Test 1</a>
</li>
<li class="page_item">
<a href="#">Test 2</a>
</li>
</ul>
And here is the code for the Pictures menu:
<div class="project__card project__card-design">
<div class="project__card-design-bigelem">
<a href="#" class="project__img-link project__img-fromdesign" style="background-image: url(https://images.pexels.com/photos/927022/pexels-photo-927022.jpeg?auto=compress&cs=tinysrgb&dpr=2&w=500);"></a>
</div>
<div class="project__card-design-bigelem">
<a href="#" class="project__img-link project__img-fromdesign" style="background-image: url(https://images.pexels.com/photos/927022/pexels-photo-927022.jpeg?auto=compress&cs=tinysrgb&dpr=2&w=500);"></a>
</div>
<div class="project__card-design-bigelem">
<a href="#" class="project__img-link project__img-fromdesign" style="background-image: url(https://images.pexels.com/photos/927022/pexels-photo-927022.jpeg?auto=compress&cs=tinysrgb&dpr=2&w=500);"></a>
</div>
</div>
If you want to see how the Picture and text menus look together, check out this screen shot with Picture and text menu.
I would greatly appreciate any assistance or ideas on how to achieve this interactive functionality!
I have been searching for solutions that could help me identify the highlighted element by its number but haven't had much success so far. Any help would be highly appreciated!