update
This commit is contained in:
@@ -449,14 +449,7 @@ export class UITransitionHelper {
|
||||
|
||||
// 执行缩放进入动画
|
||||
tween(node)
|
||||
.parallel(
|
||||
tween().to(
|
||||
duration,
|
||||
{ scale: new Vec3(1, 1, 1) },
|
||||
{ easing: "backOut" }
|
||||
),
|
||||
tween().to(duration * 0.8, { opacity: 255 }, { easing: "sineOut" })
|
||||
)
|
||||
.to(duration, { scale: new Vec3(1, 1, 1) }, { easing: "backOut" })
|
||||
.call(() => {
|
||||
if (callback) {
|
||||
callback();
|
||||
@@ -484,14 +477,7 @@ export class UITransitionHelper {
|
||||
|
||||
// 执行缩放退出动画
|
||||
tween(node)
|
||||
.parallel(
|
||||
tween().to(
|
||||
duration,
|
||||
{ scale: new Vec3(0, 0, 1) },
|
||||
{ easing: "backIn" }
|
||||
),
|
||||
tween().to(duration * 0.6, { opacity: 0 }, { easing: "sineOut" })
|
||||
)
|
||||
.to(duration, { scale: new Vec3(0, 0, 1) }, { easing: "backIn" })
|
||||
.call(() => {
|
||||
if (callback) {
|
||||
callback();
|
||||
|
||||
Reference in New Issue
Block a user