const mediaStyle = {
transition: "transform 1s",
"&:hover": {
transform: "scale(1.6)",
},
};
I have this card. Once I hover on a specific card, the card media or the picture on it will pop up. I tried the codes above, but it does not work
{data.map((i) => (
<Grid
item
xs={12}
sm={6}
md={4}
lg={3}
key={listOfPrjects.indexOf(elem)}
>
<Card style={cardStyle}>
<CardMedia style={{ mediaStyle }}
/>
<CardHeader title={i.title}/>
</Card>
</Grid>
))}
</Grid>