When the scrollTo event is triggered in AnimatedCounter.tsx, an unwanted translate-y animation occurs from the bottom. This issue appears to be related to the incorrect setting of the position value, which leads to unnecessary re-renders or state changes. I also think, improper application of containerStyles to the container might be causing layout shifts or animations during scroll.
When the scrollTo event is triggered in AnimatedCounter.tsx, an unwanted translate-y animation occurs from the bottom. This issue appears to be related to the incorrect setting of the position value, which leads to unnecessary re-renders or state changes. I also think, improper application of containerStyles to the container might be causing layout shifts or animations during scroll.
https://github.com/TuckerMassad/react-animated-counter/assets/42804706/48088fa2-cccb-4ef8-9b55-9c8e7d79a20b