My question is like this question, Hover effect : expand bottom border
how can i achieve the same effect in React using makeStyles of Material ui. I am trying like this
const useSTyles = makeStyles((theme) => ({
//other code
remove: {
textTransform: "none",
fontSize: "0.75rem",
"&:after": {
transition: theme.transitions.create(["transform"], {
duration: theme.transitions.duration.standard,
}),
transform: "scale(0)",
borderBottom: "1px solid #dbdada",
transformOrigin: "0% 50%",
},
"&:hover": {
background: "none",
"&:after": {
transform: "scale(1)",
},
},
},
// other code
}));
This is the component on which i am trying to create border bottom animation:
<Button
classes={{root:classes.remove}}
onClick={() => handleClickRemove(item)}
>
Remove
</Button>