Skip to content

Commit

Permalink
Adjust CountdownTimer animation`
Browse files Browse the repository at this point in the history
  • Loading branch information
kpyszkowski committed Apr 16, 2024
1 parent 61a9503 commit f60dfb8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions dapp/src/components/shared/CountdownTimer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,13 @@ function CountdownTimerDigit(props: CountdownTimerDigitProps) {
overflow="hidden"
{...restProps}
>
<AnimatePresence mode="wait">
<AnimatePresence mode="popLayout">
<motion.div
key={children}
initial={{ y: -42 }}
animate={{ y: 0 }}
exit={{ y: 42 }}
initial={{ y: -32, rotateX: -90, opacity: 1 }}
animate={{ y: 0, rotateX: 0, opacity: 1 }}
exit={{ y: 32, rotateX: 90, opacity: 0 }}
transition={{ type: "spring", mass: 1.05 }}
>
{children}
</motion.div>
Expand Down

0 comments on commit f60dfb8

Please sign in to comment.