OPUS/UI

Navigation

Number Ticker

hot

Counts to a value with an expo-out ease when it scrolls into view, and animates from the current number on every change. Intl-formatted.

rAFintl2 files · 87 locdeps: clsx, tailwind-merge

Revenue

$0

Uptime

0.000%

Stars

0

Installation

With the shadcn CLI, pointing at this platform’s registry:

npx shadcn@latest add https://opusui.131199999.xyz/r/number-ticker.json

Or offline, straight from your opus55 checkout (copies every file it needs):

node ../tailwind_component/opus55/scripts/add.mjs number-ticker

Usage

import { NumberTicker } from "@/components/opus/text/number-ticker";

<NumberTicker value={1284390} format={{ style: "currency", currency: "USD" }} />

API

PropTypeDefaultDescription
valuenumber—Target value.
fromnumber0Start value.
durationnumber1600ms.
format / localeIntl.NumberFormatOptions / string—Formatting.
startOnViewbooleantrueWait until visible.

Command palette