Write HTML. Render video. Built for agents.
JavaScript aiai-agentsanimationclaude-codeffmpegframeworkgsaphtmlhtml-to-videomcpmotion-graphicspuppeteerrenderingtypescriptvideo-editor
feat(gsap): add innerText support to GSAP inspector for counter animations (#1244)
Miguel Ángel05aac941fc93
diff --git a/packages/core/src/parsers/gsapConstants.ts b/packages/core/src/parsers/gsapConstants.tsindex 62feac7758..902e32fcee 100644--- a/packages/core/src/parsers/gsapConstants.ts+++ b/packages/core/src/parsers/gsapConstants.ts@@ -41,6 +41,8 @@ export const SUPPORTED_PROPS = [// Filter & Clipping"filter","clipPath",+ // DOM content (number counters, text roll-ups)+ "innerText",];export const SUPPORTED_EASES = [diff --git a/packages/studio/src/components/editor/gsapAnimationConstants.ts b/packages/studio/src/components/editor/gsapAnimationConstants.tsindex 70f9602a64..04a401d890 100644--- a/packages/studio/src/components/editor/gsapAnimationConstants.ts+++ b/packages/studio/src/components/editor/gsapAnimationConstants.ts@@ -37,6 +37,7 @@ export const PROP_LABELS: Record<string, string> = {letterSpacing: "Tracking",skewX: "Skew X",skewY: "Skew Y",+ innerText: "Counter Value",};export const PROP_UNITS: Record<string, string> = {@@ -65,6 +66,7 @@ export const PROP_TOOLTIPS: Record<string, string> = {height: "Element height",autoAlpha: "Like opacity but hides element completely at 0",visibility: "Show or hide the element",+ innerText: "End value for a number roll-up (the number it counts up/down to)",};export const EASE_LABELS: Record<string, string> = {@@ -154,6 +156,7 @@ export const PROP_CONSTRAINTS: Record<string, { min?: number; max?: number; stepy: { step: 1 },fontSize: { min: 1, step: 1 },letterSpacing: { step: 0.1 },+ innerText: { step: 1 },};export function clampPropertyValue(prop: string, value: number): number {