heyman333 / react-animated-numbers

👾 Library showing animation of number changes in react.js
MIT License
247 stars 30 forks source link

Not Working #53

Closed holiharshil closed 12 months ago

holiharshil commented 1 year ago

Not working with Next.js v13.5.6. Code: ` <AnimatedNumbers includeComma animateToNumber={parseInt(achievement.value)} locale="en-US" className="text-white text-4xl font-bold" configs={(_, index) => { return { mass: 1, friction: 100, tensions: 140 * (index + 1), }; }}

`

Bruton88 commented 1 year ago

Nextjs 13.5.4 ,example code ,whatever using dynamic import or not ,the output just show 0,000

heyman333 commented 1 year ago

https://github.com/heyman333/react-animated-numbers/issues/51#issuecomment-1742257182 this might work

stefiHB commented 1 year ago

I have same issue.

image

The config callback is working, but the outcome of the animated-numbers doesn't work.

"dependencies": { ... "next": "14.0.1", "react-animated-numbers": "^0.16.0", }

TouhidZaman commented 1 year ago

Also not working on my nextjs 13.6 project. previously worked on earlier vertion

heyman333 commented 12 months ago

Updated library to use framer-motion. Please check again with v0.17.0