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

1 Commits

Author SHA1 Message Date
shadowdao 25dfcbb725 fix(site-builder): coerce bare-number animation delay to a valid CSS time (2 -> 2s)
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>
2026-07-14 12:34:51 -07:00