DDS/Components/Number Ticker

Number Ticker

Display

Animated counter that interpolates to a target value. Ideal for displaying statistics or KPIs.

Playground

0

Controls

Props

PropTypeDefaultDescription
value*numberTarget value.
durationnumber1200Animation duration (ms).
decimalsnumber0Number of decimal places.
prefixstringPrefix (e.g. $, €).
suffixstringSuffix (e.g. %, k).
separatorstring","Thousands separator.
easing'linear' | 'ease-out' | 'ease-in-out'"ease-out"Easing curve.

Examples

RevenueCounter with currency prefix.
$0
vue
<DsNumberTicker
  :value="98432"
  prefix="$"
  :duration="1500"
/>
PercentageDecimal value with suffix.
0.0%
vue
<DsNumberTicker
  :value="94.5"
  :decimals="1"
  suffix="%"
  :duration="800"
/>
LinearLinear animation.
0
vue
<DsNumberTicker
  :value="1000"
  easing="linear"
  :duration="2000"
/>

Skeleton

Use DsNumberTickerSkeleton as a loading placeholder while content is being fetched.

Default
vue
<DsNumberTickerSkeleton />

Accessibility

  • The text is directly readable by screen readers.
  • Respects prefers-reduced-motion: if enabled, the value is displayed instantly.