mirror of
https://github.com/remvze/moodist.git
synced 2026-01-06 04:00:23 -05:00
style: change button animation
This commit is contained in:
parent
c44a86361e
commit
6983559032
@ -15,7 +15,10 @@ export function UnselectButton() {
|
||||
const hasHistory = useSoundStore(state => !!state.history);
|
||||
const unselectAll = useSoundStore(state => state.unselectAll);
|
||||
|
||||
const variants = mix(fade(), slideX(10));
|
||||
const variants = {
|
||||
...mix(fade(), slideX(15)),
|
||||
exit: { opacity: 0 },
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
@ -23,7 +26,7 @@ export function UnselectButton() {
|
||||
{(!noSelected || hasHistory) && (
|
||||
<motion.div
|
||||
animate="show"
|
||||
exit="hidden"
|
||||
exit="exit"
|
||||
initial="hidden"
|
||||
variants={variants}
|
||||
>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user