Skip to content

Commit

Permalink
feat: redesigned time countdown animation
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin0216 committed Nov 22, 2024
1 parent 0b20871 commit 5accd26
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions app/cfp/(submission)/_components/coundownClock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,21 @@ export default function CountdownClock() {
<div className="mb-2 flex flex-col items-center">
<motion.span
key={value}
initial={{ y: -30, opacity: 0 }}
animate={{ y: 0, opacity: 1 }}
transition={{ type: "spring", stiffness: 100 }}
initial={{
opacity: 0,
y: "-0.45em",
scaleY: 0.7,
filter: "blur(0.1em)",
transformOrigin: "top",
}}
animate={{ opacity: 1, y: 0, scaleY: 1, filter: "blur(0px)" }}
exit={{
opacity: 0,
y: "0.65em",
scaleY: 0.7,
filter: "blur(0.3em)",
transformOrigin: "bottom",
}}
className="text-6xl text-foreground"
>
{formatToTwoDigits(value)}
Expand Down

0 comments on commit 5accd26

Please sign in to comment.