BlurNumber

Changed digits slide and blur into place while unchanged digits remain crisp and still.

Installation

Basic

Monthly visitors

Formatting

Revenue
Conversion

Blur and timing

8px · 320ms
21px · 560ms

API Reference

PropTypeDefaultDescription
valuenumberThe numeric value to format. Changed character slots animate automatically.
formatIntl.NumberFormatOptionsFormatting options such as grouping and fixed fraction digits.
localestring"en-US"Locale passed to Intl.NumberFormat. Keep it fixed for SSR consistency.
prefix / suffixReactNodeContent rendered before or after the formatted number.
durationnumber450Duration of the slide, spring settle, and blur transition in milliseconds.
blurnumber21Peak blur in pixels. Set it to 0 for a crisp changed-character slide.
styleBlurNumberStyleNative span styles plus "--bui-blur-number-distance" for travel-distance tuning.
aria-labelstringOverrides the generated accessible value when a non-text prefix or suffix needs context.

Credits

BlurNumber is adapted from animated-blur-number by serafim, released under the MIT License. See the original demo. For continuous digit wheels, formatting plugins, and grouped transitions, use NumberFlow.