TextNew

Number Ticker

A number smoothly counts up to its value when it scrolls into view. Made for stats sections.

Customize

gradientFrom
gradientTo

Based on Number Ticker (MIT license) · Terms of use

More in Pro

View all

Props

8 properties
PropertyTypeDefaultDescription
valuenumber12480The number to count to.
startValuenumber0The number to start from.
direction'up' | 'down'"up"Count up or down.
delaynumber0Delay before start, in seconds.
decimalPlacesnumber0Digits after the decimal point.
classNamestring—Tailwind classes for the wrapper.
gradientFromstring"#ffffff"Colour at the left of the number. It fades into the second colour.
gradientTostring"#d4d4d8"Colour at the right of the number.

Dependencies

3 required packages

npm install motion clsx tailwind-merge

Related components

View all