Mod round buttons: clean button state management without extra animations
This commit is contained in:
@@ -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';}});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user