I am facing a challenge with my containing div that has a 'h1' title and a 'p' description inside it. My goal is to have the 'description paragraph' hidden while the 'title' is visible when the page loads, and to have the title fade away while the description fades in when the mouse enters the container. I want them to swap visibility back to their original state when the mouse moves out of the container. Unfortunately, I was unable to achieve this using CSS alone.
My understanding of javascript is limited, but I can somewhat comprehend it when I see it. Any assistance on this matter would be highly appreciated. I am also willing to provide more information if required.
<div class="container">
<h1 class="name">Title</h1>
<p>description</p>
</div>