Skip to content

Commit

Permalink
fix: 애니메이션 수정 및 x 위치 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ymj07168 committed May 23, 2024
1 parent 5f7fb87 commit c675d0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/Experience/YearCircle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const YearCircle: React.FC<YearCircleProps> = ({
transition: {
delay: index * 0.05,
type: "spring",
stiffness: 50,
stiffness: 100,
},
}),
exit: { scale: 0, opacity: 0, transition: { duration: 0.3 } },
Expand Down
4 changes: 2 additions & 2 deletions src/components/Experience/YearList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const YearList = ({ width, openDeleteModal }: YearListProps) => {
return index * 250 + 250;
}
if (index > hoveredIndex) {
return index * 250 + distance;
return index * 250 + distance + 100;
}
}
if (hoveredYear) {
Expand All @@ -91,7 +91,7 @@ const YearList = ({ width, openDeleteModal }: YearListProps) => {
return index * 250 + distance;
}
if (index === hoveredIndex) {
return index * 250 + 70;
return index * 250 + distance;
}
}
if (selectedYear) {
Expand Down

0 comments on commit c675d0b

Please sign in to comment.