sigilUI

Number Ticker

Animate a number as it changes to a target value.

@sigil-ui/componentsReact

Preview

Live preview Interactive

Import

import { NumberTicker } from "@sigil-ui/components";

Usage

<NumberTicker value={1234} />

Props

PropTypeDefaultDescription
valuenumber—Target value to count to.
fromnumber0Starting value.
durationnumber1200Animation duration in ms.
delaynumber0Base delay in ms.
decimalsnumber0Number of decimal places.
prefixstring—Prefix string (e.g. "$").
suffixstring—Suffix string (e.g. "%").
formatNumberbooleantrueUse locale number formatting with separators.
trigger"scroll" | "mount"——
viewOptionsUseInViewOptions——