From a6178fca51852779540d5e1eb788eb0e6c0841d4 Mon Sep 17 00:00:00 2001 From: Mirko Pecora Date: Mon, 13 Apr 2026 15:32:24 +0200 Subject: [PATCH 1/2] fix: add animation controller fallback for retrocompatibility --- src/core/elementNode.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/core/elementNode.ts b/src/core/elementNode.ts index 7841dae..2a172e9 100644 --- a/src/core/elementNode.ts +++ b/src/core/elementNode.ts @@ -870,6 +870,14 @@ export class ElementNode extends Object { | undefined | AnimationSettings); + if (!('animateProp' in this.lng)) { + const animationController = this.animate( + { [name]: value }, + animationSettings, + ); + return animationController.start(); + } + return (this.lng as any).animateProp( name, value, From ffdc571868602210f60404acd08f427aee5fbf0b Mon Sep 17 00:00:00 2001 From: Mirko Pecora Date: Mon, 13 Apr 2026 15:34:08 +0200 Subject: [PATCH 2/2] fix: added fallback comment --- src/core/elementNode.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/elementNode.ts b/src/core/elementNode.ts index 2a172e9..949a52a 100644 --- a/src/core/elementNode.ts +++ b/src/core/elementNode.ts @@ -870,6 +870,7 @@ export class ElementNode extends Object { | undefined | AnimationSettings); + // If the renderer doesn't support animateProp, fall back to animating all props which is less efficient but ensures animations still work if (!('animateProp' in this.lng)) { const animationController = this.animate( { [name]: value },