Skip to content

Commit

Permalink
animation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
danikova committed Dec 1, 2023
1 parent d717517 commit 701efe6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/counter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function CounterDisplaySingleDigit({ num }: { num: number }) {
return (
<div className="w-[45px] h-[5rem] flex flex-col overflow-hidden">
<div
className="transition-all duration-500"
className="transition-[duration] duration-500"
style={{ marginTop: `calc(${-offset} * 5rem)` }}
>
{numbers.map((n) => getNumber(n))}
Expand Down
2 changes: 1 addition & 1 deletion src/components/main-content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function MainContent({ className }: { className?: string }) {
}, [themeClass, dominantColors]);

return (
<div className={cn(className)} style={style}>
<div className={cn(className, "transition-[color]")} style={style}>
<Title />
<Counter />
</div>
Expand Down

0 comments on commit 701efe6

Please sign in to comment.