Effects Fancy Stable

SmoothCursor

Physics-based smooth cursor with spring animations and rotation effects

Preview

Installation

pnpm add fancy-ui-svelte
import { SmoothCursor } from 'fancy-ui-svelte'

Usage

svelte
<script lang="ts">
  import { SmoothCursor } from 'fancy-ui-svelte';
</script>

<SmoothCursor />

Examples

Basic Usage

Props

PropTypeDefaultDescription
springConfig SpringConfig{}Spring physics configuration with damping, stiffness, and mass

Slots

SlotDescription
cursorCustom cursor element (defaults to arrow SVG)