fix showTimer by using transform

This commit is contained in:
Spmario233 2023-09-04 00:34:12 +08:00
parent ccb8e0bb85
commit 5b56db02d5
2 changed files with 3 additions and 1 deletions

View File

@ -23957,7 +23957,7 @@
var bar=ui.create.div(this.node.timer);
ui.refresh(bar);
bar.style.transitionDuration=(time/1000)+'s';
bar.style.width=0;
bar.style.transform='scale(0,1)';
},
hideTimer:function(){
if(_status.connectMode&&!game.online&&this.playerid){

View File

@ -4589,6 +4589,8 @@ div[data-decoration="bronze"]::after{
.timerbar>div:last-child {
background: linear-gradient(#FFDA47, #CE0404);
transition-timing-function: linear;
float: left;
transform-origin: left;
}
/*.timerbar>div:last-child{background: linear-gradient(#FFFFFF,#F0F0F0);}
.timerbar[data-color="red"]>div:last-child{background: linear-gradient(#FF0000, #CE0404)}