Getting Started
Components
Special Effects
Animations
Text Animations
Backgrounds
A description for Pointer component.
motion-svruned
Animated Pointer
Animated pointer
Colored Pointer
A custom pointer with different color
Custom Shape
A pointer with a custom SVG shape
Emoji Pointer
Using an emoji as a custom pointer
Installation
pnpm dlx shadcn-svelte@latest add https://sv-animations.vercel.app/r/pointer.json
Install dependencies
Install the required packages for this component:
pnpm add motion-sv runed
Copy the Source Code
Copy and paste the following code into your project:
pointer.svelte
index.ts
Folder Structure
Folder Structure
Props
Pointer
A component for Pointer.
| Name | Type | Default | Description |
|---|---|---|---|
class | string | "" | Additional CSS classes to apply |