Fix: entrance-animation delay no-op (coerce bare number to valid CSS time) #24

Merged
jknapp merged 1 commits from fix-animation-delay into main 2026-07-14 19:36:51 +00:00
Owner

data-animation-delay is stored as a plain seconds string ("2"); the reveal script assigned it raw to el.style.animationDelay = invalid CSS = no-op. Suffix s onto bare numbers ("2"->"2s"), leaving "2s"/"200ms" alone. Byte-identical change in the backend generateCompiledHTML reveal script. 895 tests.

🤖 Generated with Claude Code

data-animation-delay is stored as a plain seconds string ("2"); the reveal script assigned it raw to el.style.animationDelay = invalid CSS = no-op. Suffix s onto bare numbers ("2"->"2s"), leaving "2s"/"200ms" alone. Byte-identical change in the backend generateCompiledHTML reveal script. 895 tests. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
jknapp added 1 commit 2026-07-14 19:36:50 +00:00
data-animation-delay is stored as a plain seconds string (e.g. '2'); the reveal
script assigned it raw to el.style.animationDelay, which is invalid CSS and no-ops.
Suffix 's' onto bare numbers (leaving '2s'/'200ms' alone) so entrance-animation
delays actually apply. Backend generateCompiledHTML gets the byte-identical change.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
jknapp merged commit 2ac62c4e9e into main 2026-07-14 19:36:51 +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#24