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/number-ticker
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.

Number Ticker

svelte-animations/number-ticker
RemovedBlock

An animated number counter component with spring physics that smoothly animates from a start value to an end value.

Install it

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

Source

./src/lib/components/magic/number-ticker/number-ticker.sveltesv-animations.vercel.app/r/number-ticker.json
1<script lang="ts">
2 import { onMount } from "svelte";
3 import { useInView } from "motion-sv";
4 import { cn } from "$UTILS$";
5
6 interface NumberTickerProps {
7 value: number;
8 startValue?: number;
9 direction?: "up" | "down";
10 delay?: number;
11 decimalPlaces?: number;
12 class?: string;
13 prefix?: string;
14 suffix?: string;
15 once?: boolean;
16 }
17
18 let {
19 value,
20 startValue = 0,
21 direction = "up",
22 delay = 0,
23 decimalPlaces = 0,
24 class: className,
25 prefix = "",
26 suffix = "",
27 once = true,
28 }: NumberTickerProps = $props();
29
30 let spanRef: HTMLSpanElement | null = $state(null);
31
32 // Spring configuration
33 const damping = 60;
34 const stiffness = 100;
35
36 // Spring physics simulation
37 function animateValue(from: number, to: number) {
38 const startTime = performance.now();
39 const duration = 2000; // Duration in ms
40
41 let velocity = 0;
42 let position = from;
43 const target = to;
44
45 function step(currentTime: number) {
46 const elapsed = currentTime - startTime;
47 const dt = 16.67 / 1000; // ~60fps in seconds
48
49 // Spring physics
50 const springForce = -stiffness * (position - target);
51 const dampingForce = -damping * velocity;
52 const acceleration = springForce + dampingForce;
53
54 velocity += acceleration * dt;
55 position += velocity * dt;
56
57 // Update display
58 if (spanRef) {
59 spanRef.textContent = `${prefix}${Intl.NumberFormat("en-US", {
60 minimumFractionDigits: decimalPlaces,
61 maximumFractionDigits: decimalPlaces,
62 }).format(Number(position.toFixed(decimalPlaces)))}${suffix}`;
63 }
64
65 // Continue animation if not settled
66 const isSettled = Math.abs(velocity) < 0.01 && Math.abs(position - target) < 0.01;
67 if (!isSettled && elapsed < duration * 2) {
68 requestAnimationFrame(step);
69 } else if (spanRef) {
70 // Ensure final value is exact
71 spanRef.textContent = `${prefix}${Intl.NumberFormat("en-US", {
72 minimumFractionDigits: decimalPlaces,
73 maximumFractionDigits: decimalPlaces,
74 }).format(Number(target.toFixed(decimalPlaces)))}${suffix}`;
75 }
76 }
77
78 requestAnimationFrame(step);
79 }
80
81 const view = useInView(
82 () => spanRef!,
83 () =>
84 ({
85 once: once,
86 margin: "0px",
87 }) as any
88 );
89 $effect(() => {
90 let timer: ReturnType<typeof setTimeout> | null = null;
91 if (view.current) {
92 timer = setTimeout(() => {
93 animateValue(
94 direction === "down" ? value : startValue,
95 direction === "down" ? startValue : value
96 );
97 }, delay);
98 }
99 return () => {
100 if (timer !== null) {
101 clearTimeout(timer);
102// … truncated

What it pulls in

npm packages

  • motion-sv

Files it writes

  • ./src/lib/components/magic/number-ticker/number-ticker.svelte
  • ./src/lib/components/magic/number-ticker/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