Check out the card sample with a lizard photo on https://material-ui.com/components/cards. When you hover over the cardActionArea, it will get darker or lighter based on the theme. Clicking on the card will make the picture change its brightness relative to the mouse pointer. Now I have two questions: 1- How can I customize the click effect color? For example, I want the photo to turn red (change hue) when clicked by the user. 2- I've added my own hover effect that slightly lifts the card when hovered (see codes below). How do I disable the default hover effect that alters the picture's color?
const useStyles = makeStyles({
root: {
width: 345,
margin: 5,
'&:hover': {
transform: 'translateY(-5px) !important'
},
},
media: {
maxHeight: 350,
marginBottom:-3
},
});