This commit is contained in:
2024-09-29 17:46:31 +08:00
parent c1cc5b2c4e
commit c93baa9be7
3 changed files with 4 additions and 4 deletions

View File

@@ -6,6 +6,6 @@
export function animate(event, classname) {
event.classList.add(classname);
event.addEventListener('animationend', (event) => {
event.classList.remove(classname); // 清洗动画
event.target.classList.remove(classname); // 清洗动画
});
}