提交 61d56089 编写于 作者: 张磊

修改半屏示例

上级 2093889f
...@@ -134,7 +134,7 @@ ...@@ -134,7 +134,7 @@
this.halfNode?.style?.setProperty('transition-duration', 0); this.halfNode?.style?.setProperty('transition-duration', 0);
this.halfNode?.style?.setProperty('transform', ''); this.halfNode?.style?.setProperty('transform', '');
} }
this.halfNode?.style?.setProperty('transition-property', ''); this.halfNode?.style?.setProperty('transition-property', 'none');
this.bAnimation = false; this.bAnimation = false;
}, time) }, time)
this.bAnimation = true; this.bAnimation = true;
...@@ -157,7 +157,7 @@ ...@@ -157,7 +157,7 @@
this.halfOffset = 0; this.halfOffset = 0;
setTimeout(() => { setTimeout(() => {
this.bAnimation = false; this.bAnimation = false;
this.halfNode?.style?.setProperty('transition-property', ''); this.halfNode?.style?.setProperty('transition-property', 'none');
}, time) }, time)
this.bAnimation = true; this.bAnimation = true;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册