let cleanAnimation = (target, onEvtFinish)=> {
let timeLine = new TimeLine();
timeLine.addLabel("hide1", 0).to(target, {alpha: 0}, 100)
.addLabel("show1", 100).to(target, {alpha: 100}, 100)
.addLabel("hide2", 200).to(target, {alpha: 0}, 100)
.addLabel("show2", 300).to(target, {alpha: 100}, 100)
if (onEvtFinish != null) {
timeLine.on(Laya.Event.COMPLETE, this, onEvtFinish);
}
timeLine.play(0, false);
};
LayaBox动画队列
最新推荐文章于 2024-10-21 20:04:08 发布
本文介绍了一种使用时间轴实现动画效果的方法,包括隐藏和显示元素的透明度变化,并提供了具体的代码实现。
1万+

被折叠的 条评论
为什么被折叠?



