const count1 = useSmoothCount({ ref: ref, target: 12927, duration: 3 }); const count2 = useSmoothCount({ ref: ref2, target: 1024, duration: 3, curve: [0, 0.75, 0.25, 1], startAt: 500 }); const count3 = useSmoothCount({ ref: ref3, target: 76.34, duration: 3, curve: [0, 0.99, 0.01, 1], preventStart: true, }); useEffect(() => { setTimeout(() => count3.start(), 2000); }, []); // full code at github.com/cnrad/use-smooth-count/example/src/pages/index.tsx