Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/core/src/parsers/gsapConstants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ export const SUPPORTED_PROPS = [
// Filter & Clipping
"filter",
"clipPath",
// DOM content (number counters, text roll-ups)
"innerText",
];

export const SUPPORTED_EASES = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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> = {
Expand Down Expand Up @@ -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> = {
Expand Down Expand Up @@ -154,6 +156,7 @@ export const PROP_CONSTRAINTS: Record<string, { min?: number; max?: number; step
y: { step: 1 },
fontSize: { min: 1, step: 1 },
letterSpacing: { step: 0.1 },
innerText: { step: 1 },
};

export function clampPropertyValue(prop: string, value: number): number {
Expand Down
Loading