feat(gsap): expose innerText counter animations in GSAP inspector panel#1244
Merged
Conversation
…tions Adds 'innerText' as a supported GSAP property so number roll-up animations (count-up from 0 to some value) are visible and editable in the GSAP inspector panel. - Add 'innerText' to SUPPORTED_PROPS in gsapConstants.ts - Add label 'Counter Value', tooltip, and step constraint (1) in gsapAnimationConstants.ts The snap modifier that controls integer rounding is already preserved verbatim via the EXTRAS_KEYS round-trip, so rounding behavior survives edits without any additional UI changes. Closes #1179
50b5af4 to
283be29
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Resolves #1179
Users can now edit number roll-up (count-up) animations via the GSAP inspector panel. Previously,
innerTexttweens were silently invisible to the inspector — the animation ran but you couldn't change the end value or speed from the UI.What changed
packages/core/src/parsers/gsapConstants.ts: Added"innerText"toSUPPORTED_PROPSpackages/studio/src/components/editor/gsapAnimationConstants.ts:Counter Valuestep: 1(integers only)How it works
innerText: 80e9→ editable as Counter Value in the inspectorsnap: { innerText: 1 }→ preserved verbatim viaEXTRAS_KEYS, no UI change neededNo GSAP plugin required — plain DOM property tweening.