I am currently working on a project that involves React and Material UI.
One challenge I am facing is figuring out how to animate a grid item size change. The default size of the item is set to sm={3}, but when a user hovers over it, I want it to expand to sm={6}. I have tried using event triggers and a state variable, but now I need help creating a smooth transition or animation for this effect.
I attempted to add the following code to the item's CSS, but unfortunately, it did not produce the desired result:
transition: theme.transitions.create("width", {
easing: theme.transitions.easing.easeIn,
duration: theme.transitions.duration.sta
})