fix: preserve initial animation state for components in rich text by lunenas · Pull Request #119 · ycode/ycode

@lunenas

Components embedded in rich text were missing their initial animation
CSS because generateInitialAnimationCSS only walks the page-level
layer tree. Rich-text component layers are namespaced differently and
excluded from that traversal, causing a flash before GSAP initializes.

Generate and inject initial animation CSS per embedded component block
in both the React client path and the SSR HTML path.

Made-with: Cursor

@liamwalder

liamwalder

@liamwalder liamwalder deleted the fix/richtext-component-animation-initial-state branch

April 1, 2026 10:14