摘自stackoverflow How to apply custom animation effect @keyframes in MUI?
//在makeStyles中添加
blink: {
animation: `$blinkEffect 2s 3`
},
"@keyframes blinkEffect": {
"0%": {
backgroundColor: 'inherit'
},
"100%": {
backgroundColor: '#ffe600',
}
}
//
<div className={xxx? classes.blink : ""}>xxx</div>