Cursor & Interaction Effects

Sparkle Cursor Trail

지정된 영역 안에서 커서 움직임에 따라 반짝임을 뿌리는 효과입니다.

Preview

desktop only

Sparkle Cursor Trail

desktop pointer preview

Desktop preview

Installation

bash
Copied
1pnpm dlx shadcn@latest add https://ryong-blog.vercel.app/r/sparkle-cursor.json

Code

typescript
Copied
1import { SparkleCursor } from "@/components/sparkle-cursor"23export default function Example() {4  return <SparkleCursor>Move here</SparkleCursor>5}

Props

children

Type
React.ReactNode
Default
-
Description
Content rendered inside the component.

className

Type
string
Default
-
Description
Additional classes merged onto the component.

color

Type
string
Default
"var(--theme-accent-current)"
Description
Sparkle color.

fullScreen

Type
boolean
Default
false
Description
Whether the canvas covers the viewport.

Reference

Lightswind Sparkle Cursor