CSS Transform Property Causing Flickering on Hover with Animated Font Icons in React 18
I'm having a hard time understanding I've been struggling with this for a few days now and could really use some help. I've looked through the documentation and I'm still confused about I'm working with an scenario where my font icons flicker when I apply a scale transform on hover, specifically using Font Awesome icons in my React 18 application. I have set up a simple hover effect that scales up the icon, but when I hover over it, the icon briefly disappears before scaling up, making the interface feel unresponsive. Here's a simplified version of my CSS: ```css .icon { transition: transform 0.2s ease; display: inline-block; } .icon:hover { transform: scale(1.2); } ``` And this is how I am using it in my React component: ```jsx import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faCoffee } from '@fortawesome/free-solid-svg-icons'; const IconComponent = () => { return <FontAwesomeIcon className="icon" icon={faCoffee} />; }; ``` I've tried changing the `transition` duration and using `will-change` to optimize performance, like this: ```css .icon { transition: transform 0.3s ease; will-change: transform; } ``` However, the flickering continues. I've also checked for any conflicting styles in my global CSS and ensured there are no JS events that might be affecting the rendering. This scenario occurs across Chrome and Firefox (latest versions). Any insights into what might be causing the flickering or how to resolve this would be greatly appreciated! Any ideas what could be causing this? Thanks in advance! Has anyone else encountered this? This is happening in both development and production on CentOS.