Skip to content
↑↓ to navigate↵ to openesc to close

Menu

Number Animation

Animated Number

AnimatedNumber.vue

Monthly recurring revenue

$0

+12.4% vs last month

Install

Run it in a project set up with shadcn-vue. The source is copied to components/beui and its dependencies are added to your package.json. Read the shadcn-vue guide

bunx --bun shadcn-vue@latest add @beui-vue/animated-number

Import the shared styles once in your application.

TSUsage
import AnimatedNumber from '@/components/beui/numeric/AnimatedNumber.vue'
import '@/components/beui/styles.css'

API Reference

value
number
Default—
duration?
number
Default1.2
format?
(n: number) => string
DefaultMath.round(n).toLocaleString()
className?
string
Default—
startOnView?
boolean
Defaulttrue
Also on React Native. Rolling tickers and count-ups.(opens in a new tab)

Updated