Currently, I am developing a website that consists of a .row with 3 columns at full size, each containing a bootstrap4 card. However, when the website is viewed on tablet or mobile devices, those 3 images should transform into a carousel display.
I'm wondering if it's possible to achieve this functionality. The use of the grid system makes it a bit tricky to implement the carousel feature.
This is the layout I am attempting to create:
Full Size:
Mobile:
This is the code for the full-size layout:
<div class="row justify-content-center">
<div class="col-md-4 d-flex justify-content-center">
<div class="card card-radius" style="width: 18rem;">
<img src="https://res.cloudinary.com/gnprojects/image/upload/v1546624022/cursos_1.jpg" class="card-img-top card-image-radius" alt="...">
<div class="card-body">
<h3 class="card-title">Basic Bakery</h3>
<p class="card-text">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
<a href="#">See more <i class="fas fa-angle-right"></i></a>
</div>
</div>
</div>
<div class="col-md-4 d-flex justify-content-center">
<div class="card card-radius" style="width: 18rem;">
<img src="https://res.cloudinary.com/gnprojects/image/upload/v1546624022/cursos_1.jpg" class="card-img-top card-image-radius" alt="...">
<div class="card-body">
<h3 class="card-title">Basic Bakery</h3>
<p class="card-text">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
<a href="#">See more <i class="fas fa-angle-right"></i></a>
</div>
</div>
</div>
<div class="col-md-4 d-flex justify-content-center">
<div class="card card-radius" style="width: 18rem;">
<img src="https://res.cloudinary.com/gnprojects/image/upload/v1546624022/cursos_1.jpg" class="card-img-top card-image-radius" alt="...">
<div class="card-body">
<h3 class="card-title">Basic Bakery</h3>
<p class="card-text">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
<a href="#">See more <i class="fas fa-angle-right"></i></a>
</div>
</div>
</div>
</div>
When the screen size reduces to tablet dimensions, my aim is to convert the layout into a carousel. Would I need to duplicate the same code within carousel tags and utilize @media queries to switch between the full-size design and the carousel on tablet devices?