Text & Typography Fancy Stable

NumberTicker

Animated number counter with easing, triggered on viewport entry

Preview

Installation

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

Usage

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

<NumberTicker />

Examples

Basic Usage

Decimal Places

Control decimal precision.

Count Down

Animate from high to low.

With Delay

Add a start delay.

Interactive Playground

Props

PropTypeDefaultDescription
value number0Target number to animate to
direction "up" | "down""up"Animation direction: "up" counts 0→value, "down" counts value→0
duration number1000Animation duration in ms
delay number0Delay before animation starts in ms
decimalPlaces number0Number of decimal places to display