mirror of
https://github.com/remvze/moodist.git
synced 2025-12-17 08:54:13 +00:00
style: change button animation
This commit is contained in:
parent
c44a86361e
commit
6983559032
1 changed files with 5 additions and 2 deletions
|
|
@ -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…
Add table
Reference in a new issue