diff --git a/packages/webgal/src/Core/controller/stage/pixi/animations/timeline.ts b/packages/webgal/src/Core/controller/stage/pixi/animations/timeline.ts index 69ac9d5bc..f0b7198b3 100644 --- a/packages/webgal/src/Core/controller/stage/pixi/animations/timeline.ts +++ b/packages/webgal/src/Core/controller/stage/pixi/animations/timeline.ts @@ -41,8 +41,8 @@ export function generateTimelineObj( } const container = target?.pixiContainer; let animateInstance: ReturnType | null = null; - // 只有有 duration 的时候才有动画 - if (duration > 0) { + // 只有有 duration 且 timeline 长度大于 1 的时候才有动画 + if (duration > 0 && timeline.length > 1) { animateInstance = popmotion.animate({ to: values, offset: times,