I’ve been trying to show my hidden description when the user hovers over the image, but for some reason I can’t make it work.
.imageContainer {
display: inline-block;
transition: all 1s ease;
}
.hidden {
display: none;
visibility: hidden;
}
.imageContainer:hover .hidden {
display: block;
visibility: visible;
}
<div class="imageContainer col-sm-6 mb-5">
<img
src="images/Mermaid.png"
class="img-fluid p-4"
alt="mermaid"
id="page1-img"
/>
</div>
<div class="hidden col-sm-6 mb-5">
<div class="appTitle text-start text-decoration-underline" id="app-title">
Mermaid Page
</div>
<p class="text-start p-0">
description
</p>
<a
class="btn btn-dark text-start text-start border border-white p-3"
href="https://my-first-site-jj.netlify.app/"
target="_blank"
role="button"
id="launch-app"
title="Learn about Memaids"
>Launch App</a>
</div>
I’ve tried changing the visibility, that didn’t work. I tried using <script> function with classList and .addEventListner that didn’t work either. However, I could have wrote something wrong there. The description just remains not visible.






