📅  最后修改于: 2022-03-11 15:03:03.255000             🧑  作者: Mango
//javascript
el.classList.add('hide');
el.classList.remove('show');
//css
.show {
opacity: 1;
}
.hide {
opacity: 0;
transition: opacity 400ms;
}