BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/Svelte Animations/smooth-cursor
This component no longer exists. It was in Svelte Animations’s manifest when we first indexed it and is not there now — the registry served its inventory on 2026-08-05 and this item was not on it. The install command below will fail. It is kept here because a tutorial somewhere still tells people to run it.

Smooth Cursor

svelte-animations/smooth-cursor
RemovedBlock

A smooth animated cursor component with spring physics that follows mouse movement with rotation and scale effects.

Install it

npx shadcn@latest add https://sv-animations.vercel.app/r/smooth-cursor.json

Source

./src/lib/components/magic/smooth-cursor/smooth-cursor.sveltesv-animations.vercel.app/r/smooth-cursor.json
1<script lang="ts">
2 import { onMount } from "svelte";
3 import { motion, useSpring } from "motion-sv";
4 import type { Snippet } from "svelte";
5
6 interface Position {
7 x: number;
8 y: number;
9 }
10
11 interface SmoothCursorProps {
12 cursor?: Snippet;
13 springConfig?: {
14 damping: number;
15 stiffness: number;
16 mass: number;
17 restDelta: number;
18 };
19 }
20
21 let {
22 cursor,
23 springConfig = {
24 damping: 45,
25 stiffness: 400,
26 mass: 1,
27 restDelta: 0.001,
28 },
29 }: SmoothCursorProps = $props();
30
31 let isMoving = $state(false);
32 let lastMousePos = $state<Position>({ x: 0, y: 0 });
33 let velocity = $state<Position>({ x: 0, y: 0 });
34 let lastUpdateTime = $state(Date.now());
35 let previousAngle = $state(0);
36 let accumulatedRotation = $state(0);
37
38 let cursorX = $derived(useSpring(0, springConfig));
39 let cursorY = $derived(useSpring(0, springConfig));
40 let rotation = $derived(
41 useSpring(0, {
42 ...springConfig,
43 damping: 60,
44 stiffness: 300,
45 })
46 );
47 let scale = $derived(
48 useSpring(1, {
49 ...springConfig,
50 damping: 35,
51 stiffness: 500,
52 })
53 );
54
55 onMount(() => {
56 const updateVelocity = (currentPos: Position) => {
57 const currentTime = Date.now();
58 const deltaTime = currentTime - lastUpdateTime;
59
60 if (deltaTime > 0) {
61 velocity = {
62 x: (currentPos.x - lastMousePos.x) / deltaTime,
63 y: (currentPos.y - lastMousePos.y) / deltaTime,
64 };
65 }
66
67 lastUpdateTime = currentTime;
68 lastMousePos = currentPos;
69 };
70
71 const smoothMouseMove = (e: MouseEvent) => {
72 let currentPos: Position = { x: e.clientX, y: e.clientY };
73 updateVelocity(currentPos);
74
75 const speed = Math.sqrt(Math.pow(velocity.x, 2) + Math.pow(velocity.y, 2));
76
77 cursorX.set(currentPos.x);
78 cursorY.set(currentPos.y);
79
80 if (speed > 0.1) {
81 const currentAngle = Math.atan2(velocity.y, velocity.x) * (180 / Math.PI) + 90;
82
83 let angleDiff = currentAngle - previousAngle;
84 if (angleDiff > 180) angleDiff -= 360;
85 if (angleDiff < -180) angleDiff += 360;
86 accumulatedRotation += angleDiff;
87 rotation.set(accumulatedRotation);
88 previousAngle = currentAngle;
89
90 scale.set(0.95);
91 isMoving = true;
92
93 const timeout = setTimeout(() => {
94 scale.set(1);
95 isMoving = false;
96 }, 150);
97
98 return () => clearTimeout(timeout);
99 }
100 };
101
102 let rafId: number;
103 const throttledMouseMove = (e: MouseEvent) => {
104 if (rafId) return;
105
106 rafId = requestAnimationFrame(() => {
107 smoothMouseMove(e);
108 rafId = 0;
109 });
110 };
111
112// … truncated

What it pulls in

npm packages

  • motion-sv

Files it writes

  • ./src/lib/components/magic/smooth-cursor/smooth-cursor.svelte
  • ./src/lib/components/magic/smooth-cursor/index.ts

Facts

Registry
Svelte Animations
Type
registry:block
Access
Free
Files written
2
Licence
MIT
In the index
at or before 2026-08-01
Last confirmed
14 days ago

Go to the source

sv-animations.vercel.app SikandarJODD/animations on GitHub Raw registry item This item as JSON

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex