We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
// Events will show auto increamenting effect
The text was updated successfully, but these errors were encountered:
const [count, setCount] = useState(0); const [start, setStart] = useState(0); const [end, setEnd] = useState(67); const [duration, setDuration] = useState(2); useEffect(() => { const intervalId = setInterval(() => { setCount(end); setStart(end); setEnd(start); }, duration * 1000 + 100); // add 100ms delay to prevent flicker return () => { clearInterval(intervalId); }; }, [start, end, duration]);
Sorry, something went wrong.
<CountUp start={start} end={end} duration={duration} useEasing={true} /> using like this
<CountUp start={start} end={end} duration={duration} useEasing={true} />
@Sattwikmaiti Thanks for the suggestion, feel free to create your feature branch in this repo and do send a PR!
No branches or pull requests
Trying to give an infinite count up effect to numerical values
// Events will show auto increamenting effect
The text was updated successfully, but these errors were encountered: