Skip to content

Wire up scrub + progressive animations (WebM) - #422

Merged
sobechestnut-dev merged 1 commit into
devfrom
docs/scrub-progressive-animations
Aug 28, 2026
Merged

Wire up scrub + progressive animations (WebM)#422
sobechestnut-dev merged 1 commit into
devfrom
docs/scrub-progressive-animations

Conversation

@sobechestnut-dev

Copy link
Copy Markdown
Contributor

Follow-up to the public-product pass: the temporal animations flagged as the honest remainder.

What

  • Animation path in the harnessoutput:"webm" + anim:{kind,frames,fps,holdFrames} sweeps a draw-range control across frames and encodes a small looping muted WebM. The Playwright-bundled ffmpeg is a stripped --disable-everything build (decode mjpeg/vp8, mux webm only), so frames are captured as JPEG and piped via image2pipe → VP8 — no PNG decode / palette / gif muxer exist.
  • Two clips (~80–100 KB each, VP8 720×536, ~3.5s): scrub-sweep.webm (segment scrub drawing the toolpath) and layer-buildup.webm (layer-range build-up — the progressive reveal).
  • Embedded as <video autoplay loop muted playsinline> (absolute URLs → no TypeDoc warning) in the feature gallery + the workers concept page.
  • Coverage matrix + harness README updated.

Verified

  • Frame captures confirmed (mid-frames show partial scrub / partial build-up).
  • Pages build green: manual 1/1, API 4/4 within budget; 21 media files copied (19 PNG + 2 WebM) to docs-site/media; video tags present.

Note

<video> plays on the Pages site; GitHub-README inline video is unreliable, so the README continues to link the gallery for motion. The true load-time progressive/hold reveal capture is still pending (the build-up clip stands in) — tracked in the matrix.

🤖 Generated with Claude Code

Add a WebM animation path to the screenshot harness and two clips:
- lib/browser.mjs encodeWebm(): the Playwright-bundled ffmpeg is a stripped
  --disable-everything build (decode mjpeg/vp8, mux webm only), so frames are
  captured as JPEG and piped through image2pipe -> VP8 (no PNG decode, palette
  filters, or gif muxer exist). Small, looping, muted output.
- capture.mjs: shots with output:"webm" + anim:{kind:"scrub"|"layers",...}
  sweep the draw-range across frames (camera/theme fixed) with a final-frame hold.
- shots.manifest.json: scrub-sweep (segment scrub drawing the toolpath) and
  layer-buildup (layer-range build-up = the progressive reveal), ~80-100 KB each.
- Embed as <video autoplay loop muted playsinline> (absolute URLs, so no TypeDoc
  warning) in the feature gallery + the workers concept page.
- Coverage matrix + harness README updated.

Verified: valid VP8 720x536 ~3.5s; Pages build within budget; both webm copied
to docs-site/media; mid-frames confirm partial scrub / partial build-up.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@sobechestnut-dev
sobechestnut-dev merged commit 3d257d5 into dev Aug 28, 2026
4 checks passed
@sobechestnut-dev
sobechestnut-dev deleted the docs/scrub-progressive-animations branch August 28, 2026 02:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant