Skip to content
This repository was archived by the owner on Jun 11, 2024. It is now read-only.

Commit 92e53c3

Browse files
committed
페이지 전환 애니메이션 흔들림 제거
1 parent 7ffdd13 commit 92e53c3

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

src/components/Content/Content.tsx

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,14 @@ const Content = ({ className, children }: ContentProps) => {
3535
</div>
3636

3737
<div className="content">
38-
<AnimatePresence>
39-
<motion.div
40-
key={pathname}
41-
initial={{ opacity: 0, y: 8 }}
42-
animate={{ opacity: 1, y: 0 }}
43-
exit={{ opacity: 1, y: 0, transition: { duration: 0 } }}
44-
transition={{ duration: 0.3 }}
45-
>
46-
{children}
47-
</motion.div>
48-
</AnimatePresence>
38+
<motion.div
39+
key={pathname}
40+
initial={{ opacity: 0, y: 8 }}
41+
animate={{ opacity: 1, y: 0 }}
42+
transition={{ duration: 0.3 }}
43+
>
44+
{children}
45+
</motion.div>
4946
</div>
5047
</ContentStyled>
5148
);

0 commit comments

Comments
 (0)