Encountering an issue with two animation libraries, react-spring and framer-motion. Attempting to create a basic animation that triggers upon the component's initial visibility (simplified version).
<motion.div initial={{x: -25, opacity: 0}} animate={{x: 0, opacity: 1}} transition={{duration: 2.5}} className="App-logo">NAME</motion.div>
On Chrome, Brave, and Edge browsers, the animation appears smooth. However, on Firefox browser, there is noticeable lag during the animation's conclusion. This behavior persists across both framer-motion and react-spring implementations. Adjusting the duration of the transition or the amount of translation improves the appearance slightly, but does not fully resolve the lagging issue.
Attempting the same animation using plain CSS results in consistent smoothness across all browsers. Despite searching for solutions, no definitive answers have been found to address this specific problem.