Having previously utilized Owl carousel on my website, I made the switch to slick carousel for the slider on a NATA coaching center in Chennai. Unfortunately, I'm encountering issues with getting the slider to work and I'm unsure of where I may be making mistakes. All images are currently displayed in a flex-column format, but I desire it to resemble a vertical slider. Below is an example of how I envision it:
https://i.sstatic.net/HGiBN.png
To achieve a vertical slider using slick, you can refer to this Codepen.
$(document).ready(function(){
$('.items').slick({
infinite: true,
slidesToShow: 3,
slidesToScroll: 3
});
});
.contact-card {
background-color: #88206D;
border: solid 2px #fff;
border-radius: 21px;
min-height: 406px;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
box-shadow: 6px 6px 9px 0px rgba(0, 0, 0, 0.5);
-webkit-box-shadow: 6px 6px 9px 0px rgba(0, 0, 0, 0.5);
-moz-box-shadow: 6px 6px 9px 0px rgba(0, 0, 0, 0.5);
}
#google-icon img {
height: 44px;
z-index: 1000;
background-color: #fff;
padding: 5px;
border-radius: 22px;
box-shadow: 2px 2px 6px 0px rgba(0, 0, 0, 0.53);
-webkit-box-shadow: 2px 2px 6px 0px rgba(0, 0, 0, 0.53);
-moz-box-shadow: 2px 2px 6px 0px rgba(0, 0, 0, 0.53);
margin-top: 24px;
margin-bottom: 60px;
}
.google-review {
-webkit-transform: rotate(90deg);
-moz-transform: rotate(90deg);
-ms-transform: rotate(90deg);
-o-transform: rotate(90deg);
margin-bottom: 60px;
}
.col-1 {
display: flex;
flex-direction: column;
align-items: center;
}
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="87f4ebeee4ecaae4e6f5e8f2f4e2ebc7b6a9bfa9b6">[email protected]</a>/slick/slick.css" rel="stylesheet"/>
<link href="https://cdn.jsdelivr.net/gh/kenwheeler/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="99eaf5f0faf2d9a8b7a1b7a8">[email protected]</a>/slick/slick-theme.css" rel="stylesheet"/>
<script src="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="40332c29232b6d2321322f3533252c00716e786e71">[email protected]</a>/slick/slick.min.js"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css" rel="stylesheet" />
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<main>
<div class="container">
<div class="row contact-card">
<div class="map col-5" id="map"></div>
<div class="offset-2 image-scroll"></div>
<div class="map-des col-3 text-white my-auto pt-4" id="m-des"></div>
<!-- i struggle in this part -- >
<!-- google reviews -->
<div class="col-1 text-center">
<div id="google-icon">
<img src="https://i.ibb.co/nknMt4k/search.png" class="google-icon">
</div>
<div class="side-star">
<p class="google-review text-nowrap">
Special thanks to Julie Porosky from Ironistic!
</div>
</div>
</div>
<!—Struggling here —>
</div>;
</div>;
<div >
<h1>This is a test</h1>
</div>
</div>
</div>
Code:
<div > do something <
</div>
</section_20_open>
<div class="container-open-left-sidebar-close wantItLeft"-->
notice close message
same thing
ok two done
</storyittle_info_plate-->