I am working on implementing a carousel using the amazing Slick Slider, which I have successfully used for images in the past without any issues. My goal is to create a 'center mode' slideshow similar to the example provided but with multiple divs.
https://i.sstatic.net/S9yL6.png
Here is what I am aiming for:
https://i.sstatic.net/W4pvy.png
The specific div elements I intend to use are available on codepen via this link - https://codepen.io/grabthereef/pen/mdymmgM
<!-- Single Card -->
<div class="single_slide">
<div class="row">
<div class="col-lg-4">
<div class="top-text">
<h1>DG Aurum</h1>
</div>
<div class="view-button">
<button type="button" class="btn btn-outline-danger-opposite shadow btn-sm m-1">Live View</button>
</div>
</div>
<div class="col-lg-8 text-center">
<img src="https://i.imgur.com/jieUOmw.jpg" class="shadow website-image" alt="website image">
</div>
</div>
</div>
The issue arises when I try to add the Slick Slider code as it disrupts the layout of my page.
https://codepen.io/grabthereef/pen/gObWBVG
I have attempted to find a solution by browsing through other questions, but being relatively new to JavaScript, none seem to work for me.