Fix: entrance-animation broken in Preview + Published output #23

Merged
jknapp merged 1 commits from fix-animation-output into main 2026-07-14 19:16:59 +00:00
Owner

Animated elements ended up invisible (Preview) or un-animated with a reserved blank box (Published). Root causes: handlePreview body-replacement clobbered the in-body reveal script; the backend generateCompiledHTML emitted no animation CSS/script; injectAttrs mangled void tags. Fix: buildAnimationScript survives the preview replacement, injectAttrs inserts before the self-closing /, and a

Animated elements ended up invisible (Preview) or un-animated with a reserved blank box (Published). Root causes: handlePreview body-replacement clobbered the in-body reveal script; the backend generateCompiledHTML emitted no animation CSS/script; injectAttrs mangled void <img/> tags. Fix: buildAnimationScript survives the preview replacement, injectAttrs inserts before the self-closing /, and a <noscript> no-JS fallback is added. Backend half (site-builder.php) ships in the deploy bundle. 894 tests. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
jknapp added 1 commit 2026-07-14 19:16:58 +00:00
jknapp merged commit 9bf78fd72d into main 2026-07-14 19:16:59 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: cloud-hosting-platform/site-builder#23