fix: 修复卡片载入动画重复播放的问题

CodeGeeX GLM 4.7 牛逼
This commit is contained in:
Ad-closeNN
2026-03-01 16:16:48 +08:00
parent f7ed7e2e7f
commit 7b11b5a215
3 changed files with 9 additions and 3 deletions
+7
View File
@@ -412,6 +412,13 @@ function showBanner() {
return;
}
// 在显示Banner前,先移除所有已加载的onload-animation类,防止动画重复触发
const animatedElements = document.querySelectorAll('.onload-animation');
animatedElements.forEach(el => {
el.style.animation = 'none';
el.style.opacity = '1';
});
banner.classList.remove('opacity-0', 'scale-105');
}