Skip to Content

Count

The Count component in REAVIZ allows you to animate counting from one number to another. This feature can be used to display numerical data dynamically, adding a visual flair to your data presentations.

Where to use:

  • Display Dynamic Numbers: Ideal for displaying changing numerical values.
  • Highlight Key Metrics: Useful for highlighting key metrics and statistics in a visually engaging way.
  • Animate Data: Great for adding animation and interactivity to your data displays.

Quick Start

To use the Count component, use import the Count and give it a number to. Optionally you can give the from number to start from.

Examples

API

CountΒ 

NameTypeDefault
classNamestring

CSS class to apply to the counter element.

tonumber

Number to animate to

fromnumber

Number to animate from. Defaults 0.

durationnumber

Duration of the animation in seconds. Defaults 1.

delaynumber

Delay of the animation. Defaults 0.

formatboolean

Localize the number. Defaults true.

decimalPlacesnumber

Number of decimal places. Defaults 0.

prefixstring | number

Prefix the number with a string or number.

suffixstring | number

Suffix the number with a string or number.

Last updated on