From abbdae47e54b1af83f333bf1b89332deba88eb1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= Date: Fri, 28 Aug 2026 18:42:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=A9=E8=B5=8B=E6=8A=BD=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- world.html | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/world.html b/world.html index da0d890..ad323f8 100644 --- a/world.html +++ b/world.html @@ -7079,9 +7079,14 @@ if (typeof fitWorld === 'function') fitWorld(); tdDeck.forEach((t, i) => { const card = document.createElement('div'); card.className = 'td-card dealt'; - card.style.animationDelay = (i * 0.06) + 's'; + card.style.animationDelay = (i * 0.16) + 's'; card.style.setProperty('--rz', (Math.random()*18 - 9).toFixed(1) + 'deg'); - setTimeout(() => playTalentSfx('deal'), i * 120); + // 每张牌“出来”进入视野(td-deal 动画开始)时立即播一声发牌“啪”,与出场锁帧同步 + card.addEventListener('animationstart', function onDealStart(e){ + if(e.animationName !== 'td-deal') return; + playTalentSfx('deal'); + card.removeEventListener('animationstart', onDealStart); + }); card.innerHTML = '
' + '
🌟
' +