This commit is contained in:
2025-09-21 14:28:17 +08:00
parent 11e8e516b7
commit d823fa9083
16 changed files with 635 additions and 701 deletions
@@ -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();