Hi! I am doing a small react project and trying to do animations with css. When i hover over an image with the mouse I want it to go opaque and when I de-hover I want it to go back. I have an animation that takes the opacity from 1 to 0.4. I then want to re-use this animation with the animationDirection: reverse but it does not work. This is my code:
I am using material UI JSS (https://material-ui.com/styles/basics/)
mediaHide: {
animationName: "$fadeOut",
animationDuration: "0.6s",
opacity: '0.4',
},
mediaShow: {
animationName: '$fadeOut',
animationDirection: 'reverse',
animationDuration: '0.4s',
`opac

