Skip to content

Commit

Permalink
fix: 캐러셀 일시정지 유지, 누락된 애니메이션 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
yeolyi committed Apr 7, 2024
1 parent d3ad3e8 commit d388703
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
9 changes: 8 additions & 1 deletion app/[locale]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,14 @@ const LinkWithArrow = ({
<p className="text-base font-medium sm:text-lg sm:font-semibold">{title}</p>
<p className="text-xs font-medium sm:font-semibold">{subtitle}</p>
</div>
<Image src="/image/main/right_arrow.png" width={24} height={24} alt="" sizes="24w" />
<Image
src="/image/main/right_arrow.png"
width={24}
height={24}
alt=""
sizes="24w"
className="duration-300 group-hover:translate-x-2"
/>
</Link>
);
};
4 changes: 2 additions & 2 deletions components/main/useCarousel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ export default function useCarousel(news: MainNews[]) {
(page: number) => {
stopScroll();
_setPage(page);
startScroll();
if (isScroll) startScroll();
},
[startScroll, stopScroll],
[isScroll, startScroll, stopScroll],
);

useEffect(() => {
Expand Down

0 comments on commit d388703

Please sign in to comment.