From 9ef6d094f543d40a233b11c85cc650d64b9e33fa Mon Sep 17 00:00:00 2001 From: Mujahid Ansori Majid Date: Tue, 10 Oct 2023 20:03:26 +0700 Subject: [PATCH] fix slick at section 2 --- assets/js/section2.js | 18 ++++++------------ index.html | 18 +++++++++++++----- 2 files changed, 19 insertions(+), 17 deletions(-) diff --git a/assets/js/section2.js b/assets/js/section2.js index be558c4..042c013 100644 --- a/assets/js/section2.js +++ b/assets/js/section2.js @@ -1,16 +1,10 @@ $(document).ready(function () { - console.log("test"); $(".section__2-carousel").slick({ - // prevArrow: "", - // nextArrow: "", - // dots: true, - // autoplay: true, - // autoplaySpeed: 2500, - // centerMode: true, - // centerPadding: "60px", - // slidesToShow: 3, - - // slidesToShow: 1, - // slidesToScroll: 1, + dots: true, + infinite: true, + speed: 300, + slidesToShow: 1, + centerMode: true, + variableWidth: true, }); }); diff --git a/index.html b/index.html index 2910e1b..31dae38 100644 --- a/index.html +++ b/index.html @@ -21,12 +21,12 @@ @@ -147,28 +147,36 @@ src="https://kyou.id/static/img/store/1-sm.jpg" style="object-fit: cover" alt="" - width="100%" - height="100%" + width="200px" + height="200px" />