Mod round buttons: clean button state management without extra animations

This commit is contained in:
2026-04-08 19:02:44 -05:00
parent 01cd50abf7
commit c9795f816c

View File

@@ -361,16 +361,10 @@ function renderRoundButtons(){
openBtn.innerHTML='■ CLOSE ROUND'; openBtn.innerHTML='■ CLOSE ROUND';
openBtn.className='btn btn-red btn-full'; openBtn.className='btn btn-red btn-full';
resumeBtn.style.display='block'; resumeBtn.style.display='block';
if(typeof gsap!=='undefined'){
gsap.fromTo(resumeBtn,{opacity:0,y:4},{opacity:1,y:0,duration:0.3,ease:'power2.out'});
}
} else { } else {
openBtn.innerHTML='▶ OPEN ROUND'; openBtn.innerHTML='▶ OPEN ROUND';
openBtn.className='btn btn-g btn-full'; openBtn.className='btn btn-g btn-full';
resumeBtn.style.display='none'; resumeBtn.style.display='none';
if(typeof gsap!=='undefined'){
gsap.to(resumeBtn,{opacity:0,y:-4,duration:0.3,ease:'power2.in',onComplete:()=>{resumeBtn.style.display='none';}});
}
} }
} }