Skip to content

Commit

Permalink
feat: 팀 랭킹 넘어가는 애니메이션 구현 (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
llddang authored Feb 22, 2024
1 parent d6af65a commit b405a90
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/containers/main/TeamRankSlider/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@ const TeamRankSlider = () => {

return (
<Box pos="relative" w="100%" h="400">
<Box pos="absolute" left={`calc(50% - ${780 * indexX}px)`} transform="translate(-50%, 0%)">
<Box
pos="absolute"
left={`calc(50% - ${780 * indexX}px)`}
transform="translate(-50%, 0%)"
transition="left 1s ease-in-out 0s"
>
{teamRankInfos.map((info, _) => {
const leftScale = 780 * _;
return (
Expand Down

0 comments on commit b405a90

Please sign in to comment.