fix: fix some animation issues

This commit is contained in:
MAZE 2023-10-12 19:52:19 +03:30
parent fa7b90eeec
commit eccba87557
2 changed files with 2 additions and 2 deletions

View file

@ -90,7 +90,7 @@ export function Buttons() {
)}
</motion.button>
<AnimatePresence>
<AnimatePresence mode="popLayout">
{(!noSelected || hasHistory) && (
<motion.div
animate={{ opacity: 1, x: 0 }}

View file

@ -29,7 +29,7 @@ export function Category({
animate={{ opacity: 1 }}
className={styles.category}
initial={{ opacity: 0 }}
layout
layout="position"
>
<div className={styles.iconContainer}>
<div className={styles.tail} />