I have a project with React and Material UI.
I need some guidance on how to animate a grid item size change. The item is by default sm={3}, when the user hovers the item, this changes to sm={6}. This is done with even triggers and a state variable. My question is how can I create a transition/animation for this?
I tried adding this to the item css but it didn't work.
transition: theme.transitions.create("width", {
easing: theme.transitions.easing.easeIn,
duration: theme.transitions.duration.sta
})