Is there a way for the text content to change from appearing on hover of an image to opening with a click in the mobile version?
<div class="program prog-image" style="background-image: url(https://imagevars.gulfnews.com/2019/07/23/Timberwolf_16c1de35555_base.jpg)">
<div class="more-details">
<ul>
<li>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Odit, voluptates.</li>
<li>Lorem ipsum dolor sit amet.</li>
</ul>
</div>
</div>
<style>
.program{
height: 400px;
width: 700px;
position: relative;
}
.more-details{
opacity: 0;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
ul{
list-style: none;
}
.program:hover .more-details{
opacity: 1;
}
</style>
I am looking to create an accordion-style feature with arrows. Can someone provide guidance on achieving this?