Solution 要做什麼
對照完整答案、責任邊界與原因。
本主題檔案:files/style.css
定位:先讀 animation-name/duration/iteration-count/fill-mode,確認不是 infinite。
Solution · code-edit
對照完整答案、責任邊界與原因。
對照完整答案、責任邊界與原因。
本主題檔案:files/style.css
定位:先讀 animation-name/duration/iteration-count/fill-mode,確認不是 infinite。
頁面不會替你修改檔案;請在實作檔完成後重新整理確認。
目標沒有 finite-animation,iteration-count computed為1。
現有 runtime iteration-count 由1變2;required facts iterationCount=2、fillMode=both、animationEnd=true、finalClass 不含 finite-animation。
.notice.is-animating{animation:pulse 240ms ease 2 both}notice.addEventListener('animationend',()=>notice.classList.remove('is-animating'))只在本階段資料夾內操作,避免改到其他章節。
index.htmlstyle.cssmain.js證據:before=1、after=2、fillMode=both、animationEnd=true、finalClass已清理
回到主題說明