Count Up(008)

Smooth spring-physics numerical counter that animates from a start value to target value.

Scroll
Requires:motion

Installation

$npx kibo add count-up

Usage

1import { CountUp } from "@/components/kibo/count-up/component";
2
3export default function Example() {
4 return (
5 <CountUp />
6 );
7}

Props Reference

PropTypeDefaultDescription
tonumber-Controls the to for the component animation.
fromnumber0Controls the from for the component animation.
direction'up' | 'down''up'Direction of movement (e.g., 'top', 'bottom', 'left', 'right').
delaynumber0Delay in milliseconds before the animation begins or between steps.
durationnumber2Duration of the animation in seconds or milliseconds.
classNamestring''Additional CSS classes for styling and layout.
startWhenbooleantrueControls the start when for the component animation.
separatorstring''Controls the separator for the component animation.
onStart() => void-Controls the on start for the component animation.
onEnd() => void-Controls the on end for the component animation.