Skip to content

Commit

Permalink
✨ chore: delete auto play props
Browse files Browse the repository at this point in the history
 - 오토 플레이 속성을 없앱니다

 by Hah-nna #14
  • Loading branch information
Hah-nna committed Mar 31, 2024
1 parent ab97dc7 commit 0e70157
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/components/carousel/Carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@ export default function SimpleSlider() {
infinite: true,
className: "center",
centerMode: true,
centerPadding: "30px",
centerPadding: "0px",
slidesToShow: 3,
slidesToScroll: 1,
autoplay: true,
autoplay: false,
speed: 2000,
autoplaySpeed: 500,
variableWidth: true,
focusOnSelect: true,
};
Expand All @@ -24,7 +23,6 @@ export default function SimpleSlider() {

const mouseEnterHandler = (id) => {
setCategory(id);
console.log("id", id);
};

return (
Expand All @@ -34,7 +32,7 @@ export default function SimpleSlider() {
return (
<div
key={idx}
className="slick-slider-item "
className="slick-slider-item rounded-[12px]"
onMouseEnter={() => mouseEnterHandler(img.id)}
>
<img
Expand Down

0 comments on commit 0e70157

Please sign in to comment.