mirror of
https://github.com/hanzoai/agency.git
synced 2026-11-02 19:13:28 +00:00
14 lines
532 B
Plaintext
14 lines
532 B
Plaintext
export interface UseCountUpOptions {
|
|
/** Animation duration in ms. Default 1200. Set 0 to disable. */
|
|
duration?: number;
|
|
/** Easing function. Default cubic ease-out. */
|
|
ease?: (t: number) => number;
|
|
/** Re-trigger on `target` changes. Default true. */
|
|
retrigger?: boolean;
|
|
}
|
|
/**
|
|
* Smoothly animates from 0 (or the previous value) up to `target`. Honors
|
|
* `prefers-reduced-motion` and a `duration: 0` opt-out.
|
|
*/
|
|
export declare function useCountUp(target: number | null, opts?: UseCountUpOptions): number;
|