Skip to content

Commit

Permalink
perf: opacity adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
Firgrep committed Nov 21, 2024
1 parent 413bbb8 commit 99b9269
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/components/ui/CardShellMagic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ export function CardShellMagic({ children }: { children?: ReactNode }) {
<div
className={cn(
styles["card-magic"],
"h-[35vh] aspect-[4/3] card-magic border hover:border-hidden dark:border-slate-900 bg-gradient-to-b from-gray-50/90 to-gray-100/90 dark:from-neutral-950/90 dark:to-neutral-800/90 rounded-md flex flex-col items-center justify-center"
"h-[35vh] aspect-[4/3] card-magic border hover:border-hidden rounded-md flex flex-col items-center justify-center",
"dark:border-slate-900 bg-gradient-to-b from-gray-50/90 to-gray-100/90 dark:from-neutral-950/90 dark:to-neutral-800/90",
"hover:from-gray-50 hover:to-gray-100 hover:dark:from-neutral-950 hover:dark:to-neutral-800"
)}
>
{children}
Expand Down
2 changes: 1 addition & 1 deletion lib/components/ui/card.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
);
animation: rotate 3s linear infinite;
opacity: 0;
transition: opacity 2s;
transition: opacity 1s;
}
.card-magic::after {
filter: blur(3.5rem);
Expand Down

0 comments on commit 99b9269

Please sign in to comment.