fix showTimer by using transform
This commit is contained in:
parent
ccb8e0bb85
commit
5b56db02d5
|
@ -23957,7 +23957,7 @@
|
||||||
var bar=ui.create.div(this.node.timer);
|
var bar=ui.create.div(this.node.timer);
|
||||||
ui.refresh(bar);
|
ui.refresh(bar);
|
||||||
bar.style.transitionDuration=(time/1000)+'s';
|
bar.style.transitionDuration=(time/1000)+'s';
|
||||||
bar.style.width=0;
|
bar.style.transform='scale(0,1)';
|
||||||
},
|
},
|
||||||
hideTimer:function(){
|
hideTimer:function(){
|
||||||
if(_status.connectMode&&!game.online&&this.playerid){
|
if(_status.connectMode&&!game.online&&this.playerid){
|
||||||
|
|
|
@ -4589,6 +4589,8 @@ div[data-decoration="bronze"]::after{
|
||||||
.timerbar>div:last-child {
|
.timerbar>div:last-child {
|
||||||
background: linear-gradient(#FFDA47, #CE0404);
|
background: linear-gradient(#FFDA47, #CE0404);
|
||||||
transition-timing-function: linear;
|
transition-timing-function: linear;
|
||||||
|
float: left;
|
||||||
|
transform-origin: left;
|
||||||
}
|
}
|
||||||
/*.timerbar>div:last-child{background: linear-gradient(#FFFFFF,#F0F0F0);}
|
/*.timerbar>div:last-child{background: linear-gradient(#FFFFFF,#F0F0F0);}
|
||||||
.timerbar[data-color="red"]>div:last-child{background: linear-gradient(#FF0000, #CE0404)}
|
.timerbar[data-color="red"]>div:last-child{background: linear-gradient(#FF0000, #CE0404)}
|
||||||
|
|
Loading…
Reference in New Issue