I have created an image and text hover effect. There are four images and corresponding paragraphs for each image. When hovering over an image, the specific paragraph should replace the previous one using only HTML and CSS. Please note the following: The design should ensure that the discovery paragraph is active if no other text is hovered over. The code below shows my attempt:
HTML Code:
<div class="image-slide">
<a href="#discovery"><img src="discovery.jpg" alt="discovery"></a>
<a href="#recommendation"><img src="recommendation.jpg" alt="recommend"></a>
<a href="#implementation"><img src="implementation.jpg" alt="implementation"></a>
<a href="#review"><img src="review.jpg" alt="review"></a>
</div>
<div id="discovery" class="paragraph-slide">
<h3>Discovery</h3>
<p>This meeting is held about one week after the FIT Meeting and normally runs about two hours. This is where all the pertinent financial data is gathered and reviewed. We take a very comprehensive approach, therefore needing every detail to formulate the right financial plan to work towards your needs and goals.</p>
</div>
<div id="recommendation" class="paragraph-slide">
<h3>Recommendation</h3>
<p>Similar to Discovery, this meeting is crucial in gathering and reviewing financial data for developing the right plan suited to your individual needs and goals.</p>
</div>
<div id="implementation" class="paragraph-slide">
<h3>Implementation</h3>
<p>Once the recommendations are made, it's time to put them into action. This step involves executing the proposed financial plan to achieve your desired outcomes.</p>
</div>
<div id="review" class="paragraph-slide">
<h3>Review</h3>
<p>After implementing the plan, regular reviews and adjustments are essential to ensure it continues to align with your financial goals and aspirations.</p>
</div>
CSS Code:
.image-slide{
margin: 50px 0px 30px 50px;
}
.company-process h3{
font-family: 'Cinzel-Regular';
font-size: 22px;
color: #1a1a1a;
text-align: center;
margin:50px 0 5px 0;
}
.company-process img{
cursor: pointer;
}
.company-process .paragraph-slide p{
font-family: 'Raleway-Regular';
font-size: 16px;
color: #666666;
margin:20px 50px 20px 50px;
padding: 0;
}