style: change button animation

This commit is contained in:
MAZE 2023-10-31 12:35:43 +03:30
parent 7363e8d51a
commit c44a86361e

View file

@ -15,11 +15,11 @@ export function UnselectButton() {
const hasHistory = useSoundStore(state => !!state.history); const hasHistory = useSoundStore(state => !!state.history);
const unselectAll = useSoundStore(state => state.unselectAll); const unselectAll = useSoundStore(state => state.unselectAll);
const variants = mix(fade(), slideX(20)); const variants = mix(fade(), slideX(10));
return ( return (
<> <>
<AnimatePresence mode="popLayout"> <AnimatePresence mode="wait">
{(!noSelected || hasHistory) && ( {(!noSelected || hasHistory) && (
<motion.div <motion.div
animate="show" animate="show"