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 = '
' + '
🌟
' +