Currently implementing Bootstrap 4.2.
. What is the recommended approach for displaying and concealing an Image overlay with a seamless transition?
The structure of my HTML will be:
<div class="card bg-dark text-white">
<img src="..." class="card-img" alt="...">
<div class="card-img-overlay">
<h5 class="card-title">Card title</h5>
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
<p class="card-text">Last updated 3 mins ago</p>
</div>
</div>
Can this be achieved using Display properties? In order to utilize responsive classes, excluding the hover effect on mobile devices.
Additionally, I'm unable to locate the opacity
class in Bootstrap 4.2.
anymore?