[英]Click the button again to stop animation after 4 seconds
我有一個聲明,如果它點擊按鈕播放 animation,我希望它在 4 秒后再次點擊按鈕停止 animation。下面是 if 語句中的代碼。
document.getElementById("clickButton").click();
您可以在此處查看答案: CSS 動畫,無限開始和停止 animation 單擊並在 4 秒后停止 animation,您可以使用setTimeout()或setInterval()
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.