Skip to content

Commit

Permalink
fix(logo): animate only when valid
Browse files Browse the repository at this point in the history
  • Loading branch information
Curve committed Oct 2, 2024
1 parent 378aeea commit c2f60a8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/Logo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ export default function Logo({ ...props }: ComponentProps<"svg">)
{
setTimeout(() =>
{
if (!ref || !ref.current)
{
return;
}

hover(ref.current, {
y: [0, 10, 0, -10, 0],
}, {
Expand Down

0 comments on commit c2f60a8

Please sign in to comment.