176 web animation techniques, each a live demo with plain settings and a ready-made prompt for your AI assistant. No dependencies, no build step.
HTML ai-promptsanimationcss-animationsfrontendgithub-pagesjavascriptmicrointeractionsmotion-designno-dependenciesreferencescroll-animationui-animationweb-animationweb-developmentwebgl
docs: the 159-page plan: the kit's short stages add 1366×630 (27 pictures), and the tracker sets its exit code instead of exiting at once
matinc6f0bb16efbe
diff --git a/docs/superpowers/plans/2026-10-14-see-inside-compare-other-pages.md b/docs/superpowers/plans/2026-10-14-see-inside-compare-other-pages.mdindex ef45e7e9..a9f038c7 100644--- a/docs/superpowers/plans/2026-10-14-see-inside-compare-other-pages.md+++ b/docs/superpowers/plans/2026-10-14-see-inside-compare-other-pages.md@@ -50,7 +50,7 @@- **Reduced motion:** every mode is a still picture that still teaches; no mode adds movement; the shared script presses nothing.- **Phones:** the box keeps its size in every mode, Compare included (ruling 4); halves side by side while each keeps about 160px of scene, else stacked; anything a mode adds that can be pressed is at least 44×44px (checked by hand: the page check skips the stage); hover and drag keep their touch equivalents.- **Words and size:** no code on the page; American spelling; no hype; about 300 lines for the demo plus about 150 for its two views (a page already past 300 adds about 150 at most).-- **Checks:** the tests are `node --test "tests/*.test.js"` from the worktree root: all pass. The page check is `node tools/check-pages.mjs --base http://127.0.0.1:<port> --out <folder> <page folders>`: six `ok` lines per page. The kit (`record.mjs`) gives the motion (clips), the settings (`--press`), Normal before and after (`--before http://127.0.0.1:8800`: the stage and Try it, each pictured on the screen and clipped to its own box, at 1280, 375 and 320; Phase 0's kit round 3) and the short stages (`--short`: the page check's two place rules for labels and half names (inside the stage, none overlapping) at 667×375, 812×375, 844×390, 932×430, 1024×600, 1280×600 and 1440×620, and 812×375 with reduced motion, in every mode; one line per size and mode, a last line `24 short-screen pictures checked, <n> with labels cut or overlapping, <s> skipped, <f> failed`, exit 1 on a problem; added by Phase 0's kit round 4 and reviewed in Task 5, which then appends `Kit short: done: record.mjs --short, reviewed` to `$RUN/ledger.md`: the line Task 6 waits for, beside Task 5's `Kit hold: done`).+- **Checks:** the tests are `node --test "tests/*.test.js"` from the worktree root: all pass. The page check is `node tools/check-pages.mjs --base http://127.0.0.1:<port> --out <folder> <page folders>`: six `ok` lines per page. The kit (`record.mjs`) gives the motion (clips), the settings (`--press`), Normal before and after (`--before http://127.0.0.1:8800`: the stage and Try it, each pictured on the screen and clipped to its own box, at 1280, 375 and 320; Phase 0's kit round 3) and the short stages (`--short`: the page check's two place rules for labels and half names (inside the stage, none overlapping) at 667×375, 812×375, 844×390, 932×430, 1024×600, 1280×600, 1366×630 and 1440×620, and 812×375 with reduced motion, in every mode; one line per size and mode, a last line `27 short-screen pictures checked, <n> with labels cut or overlapping, <s> skipped, <f> failed`, exit 1 on a problem; added by Phase 0's kit round 4 and reviewed in Task 5, which then appends `Kit short: done: record.mjs --short, reviewed` to `$RUN/ledger.md`: the line Task 6 waits for, beside Task 5's `Kit hold: done`).- **Acceptance for each page (spec section 1), confirmed line by line by a reviewer who is never the builder:** (1) clear from the picture alone in the mode screenshots at 1280 and 375, start outlines where a movement is shrunk; (2) every mode still under reduced motion and still teaching; (3) Normal at rest pixel-identical to before (a few antialiased corner pixels aside; random pages by eye), Try it, chips and prompt unchanged; (4) a mode change never scrolls the page or the box, moves focus, stops Play or changes Pause, shows the current state at once, then plays once on plays-once and do-it pages (not under reduced motion); (5) notes as above; (6) captions as above; (7) every setting visibly changes See inside and Compare; (8) phones as above; (9) the keyboard works in every mode as in Normal, copies inert and hidden from screen readers, a named picture names each mode, a control's name contains its visible words; (10) light enough, as above; (11) tests pass and six `ok` lines; (12) words and size as above.- **Commits:** a build is one commit, `feat: <Title> shows <the See inside picture> (See inside) and <the first half> beside <the second half> (Compare)`; a fix round adds commits `fix: <Title>: <what changed>`; merge commits say what they bring. `{{…}}` in a prompt template is a value the tracker fills in (Task 2).- **Reports:** every agent writes its report file, whose first line is its RESULT line (Tasks 7 and 8), and replies with at most three lines. The coordinator reads RESULT lines through the tracker, not whole reports.@@ -918,7 +918,7 @@ async function main(argv) {return 2;}if (resolve(process.argv[1] || '').toLowerCase() === fileURLToPath(import.meta.url).toLowerCase()) {- main(process.argv.slice(2)).then(code => process.exit(code), err => { console.error(err.message); process.exit(1); });+ main(process.argv.slice(2)).then(code => { process.exitCode = code; }, err => { console.error(err.message); process.exitCode = 1; }); // exitCode, not exit(): process.exit() right after a fetch aborts on Windows (libuv assertion)}```@@ -1580,13 +1580,13 @@ Then a real caret page, main's on both sides, through a copy four folders belowExpected: `grep -c "the stage: 0 of [0-9]* pixels differ (0 visibly); Try it: 0 of [0-9]* pixels differ (0 visibly)" $S/real.log` prints `3`, `grep -c "did not come to rest" $S/real.log` prints `0` (its caret blinks for ever and is held), and `0 pictures, 0 clips and 3 comparisons made, 0 skipped, 0 failed`. Then `rm -rf /c/Users/matin/OneDrive/Desktop/Projects/animation-handbook/.superpowers/sdd/2026-10-13-see-inside-compare/kit-hold-real`.Then round 4's `--short` on two fixture pages with the copy, for the review, each as a background command, with `<page>` and `<log>` taken in turn from `ok-captions` and `short-ok`, `bad-caption-outside` and `short-bad`:`REPO=/c/Users/matin/OneDrive/Desktop/Projects/animation-handbook; RUN=$REPO/.superpowers/sdd/2026-10-13-see-inside-compare; S=$RUN/scratch/kit-hold; node $RUN/slot.mjs run kit-hold -- node $S/site/k/i/t/kit/record.mjs --base http://127.0.0.1:8840 --short --out $S/out-<log> animations/93-phase0/<page> > $S/<log>.log 2>&1; echo "EXIT=$?" >> $S/<log>.log`-Expected: `short-ok.log` has `24 short-screen pictures checked, 0 with labels cut or overlapping, 0 skipped, 0 failed` and `EXIT=0`; `short-bad.log` has eight `FAIL` lines, one per screen in See inside (`… the label "Outside label" is not inside the stage`), `24 short-screen pictures checked, 8 with labels cut or overlapping, 0 skipped, 0 failed` and `EXIT=1`.+Expected: `short-ok.log` has `27 short-screen pictures checked, 0 with labels cut or overlapping, 0 skipped, 0 failed` and `EXIT=0`; `short-bad.log` has nine `FAIL` lines, one per screen in See inside (`… the label "Outside label" is not inside the stage`), `27 short-screen pictures checked, 8 with labels cut or overlapping, 0 skipped, 0 failed` and `EXIT=1`.- [ ] **Step 5: Review (a fresh agent): the hold, and kit rounds 3 and 4**A fresh reviewer (opus) gets this task and reviews two things, then writes a verdict with numbered items:- The hold: `diff $RUN/scratch/kit-hold/record-before.mjs $RUN/scratch/kit-hold/site/k/i/t/kit/record.mjs` and the logs `run-0.log` to `run-3.log` and `real.log` in `$RUN/scratch/kit-hold/`. It confirms: the hold is the page check's (round 4's `holdEndless` and `releaseEndless`, declared once, against the merged `tools/check-pages.mjs`: only running stage animations whose iterations are Infinity, each let go in a `finally`); `rest()`, `beforeAfter`'s region pictures and `capture` hold, and the clips do not; `run-0.log` fails as Step 2 says and the others pass as Step 4 says; `node --check` on the copy and the kit's tests (`cd $KIT && node --test record.test.mjs`) pass.-- Kit rounds 3 and 4, as the kit has them (the coordinator folded their review into this task): the report's parts "Fix round 3" and "Round 4" and the README's parts of the same names; their code in the copy (`regionShot`, `stageShot`, `PHONE_SMALL`, `REGIONS`, `beforeAfter` and `comparePictures`, the `--short` arguments, `shortCheck`, `CAPTIONS`, `holdEndless`, `releaseEndless`, `restHeld`, and the log and done lines) and in `$KIT/kit-lib.mjs` (`regionPlan`, `captionProblems`, `SHORT_SETUPS`, with their tests in `record.test.mjs`); their outputs in `$RUN/scratch/kit-fix3/` and `$RUN/scratch/kit-fix4/`; and the logs `short-ok.log` and `short-bad.log`. It confirms: each region is pictured on the screen (scrolled 8px under the pinned bar unless it is wholly on the screen) and clipped to its own box; Normal before and after runs at 1280, 375 and 320; the branch's switch row is taken out (style only) only when the stage's place on the page differs, and a note says so; a stage of another size fails, a Try it of another size or on one site only is said and not counted; `--short` takes one page, refuses `--gallery`, `--only` and `--before` (exit 2), rests and measures captions as the page check does (its `restShot` and `captionProblems`, word for word), exits 1 on a problem; and the log lines the plan expects (Task 7, steps 7 and 8, Task 8, Task 14) are the ones the kit prints.+- Kit rounds 3, 4 and 5 (5 added 1366×630), as the kit has them (the coordinator folded their review into this task): the report's parts "Fix round 3" and "Round 4" and the README's parts of the same names; their code in the copy (`regionShot`, `stageShot`, `PHONE_SMALL`, `REGIONS`, `beforeAfter` and `comparePictures`, the `--short` arguments, `shortCheck`, `CAPTIONS`, `holdEndless`, `releaseEndless`, `restHeld`, and the log and done lines) and in `$KIT/kit-lib.mjs` (`regionPlan`, `captionProblems`, `SHORT_SETUPS`, with their tests in `record.test.mjs`); their outputs in `$RUN/scratch/kit-fix3/` and `$RUN/scratch/kit-fix4/`; and the logs `short-ok.log` and `short-bad.log`. It confirms: each region is pictured on the screen (scrolled 8px under the pinned bar unless it is wholly on the screen) and clipped to its own box; Normal before and after runs at 1280, 375 and 320; the branch's switch row is taken out (style only) only when the stage's place on the page differs, and a note says so; a stage of another size fails, a Try it of another size or on one site only is said and not counted; `--short` takes one page, refuses `--gallery`, `--only` and `--before` (exit 2), rests and measures captions as the page check does (its `restShot` and `captionProblems`, word for word), exits 1 on a problem; and the log lines the plan expects (Task 7, steps 7 and 8, Task 8, Task 14) are the ones the kit prints.Findings are fixed on the copy (Steps 3 and 4 again for the hold; for rounds 3 and 4, by the coordinator's choice of agent, on the same copy) and re-checked by the same reviewer.- [ ] **Step 6: The copy in place, the README, and the gates**@@ -1789,7 +1789,7 @@ a server. Start every Bash call with:folders (the log names them): the views move as the brief says. Then delete those frame folders. Then the shortstages (lesson 12), in the background as in step 5:`cd $WT && node $RUN/slot.mjs run b-{{NUM}} -- node $KIT/record.mjs --base http://127.0.0.1:{{PORT}} --short --out {{KIT}}-short {{PAGE}} > {{KIT}}-short.log 2>&1; echo "EXIT=$?" >> {{KIT}}-short.log`- then `node $RUN/wait-log.mjs {{KIT}}-short.log`. Expected: the line `24 short-screen pictures checked, 0 with labels cut+ then `node $RUN/wait-log.mjs {{KIT}}-short.log`. Expected: the line `27 short-screen pictures checked, 0 with labels cutor overlapping, 0 skipped, 0 failed` and `EXIT=0` (eight screens, three modes); anything cut or overlapping (a `FAIL`line names it): fix it (step 6's rounds again) and run it again.8. Every setting (acceptance 7). For each choice of each setting other than its default, and each switch in Try it (never@@ -1890,7 +1890,7 @@ report in `{{REPORTS}}` (`build.md`, `build-log.md`, earlier reviews and fixes,in the background, wait for it the same way, read the frames, then delete the frame folders its log names. The shortstages (lesson 12), in the background:`cd $WT && node $RUN/slot.mjs run r-{{NUM}} -- node $KIT/record.mjs --base http://127.0.0.1:{{PORT}} --short --out {{KIT}}-review-{{N}}-short {{PAGE}} > {{KIT}}-review-{{N}}-short.log 2>&1; echo "EXIT=$?" >> {{KIT}}-review-{{N}}-short.log`- then `node $RUN/wait-log.mjs {{KIT}}-review-{{N}}-short.log`: the line `24 short-screen pictures checked, 0 with labels+ then `node $RUN/wait-log.mjs {{KIT}}-review-{{N}}-short.log`: the line `27 short-screen pictures checked, 0 with labelscut or overlapping, 0 skipped, 0 failed` and `EXIT=0`; read the stills (its `short/` folder) of any `FAIL` line.Acceptance 1, 2, 3, 6 and 8 from these.4. The settings (acceptance 7): the builder's `{{KIT}}-*` folders and report; make a run yourself (as in step 3, with@@ -1976,7 +1976,7 @@ Keep a log: a line per step in `{{REPORTS}}/fix-{{N}}-log.md`.picture by eye on a random page); read the frames you need, then delete the kept frame folders. Settings an item names:their `--press` runs again, into `{{KIT}}-<short name>`. The short stages again, in the background:`cd $WT && node $RUN/slot.mjs run f-{{NUM}} -- node $KIT/record.mjs --base http://127.0.0.1:{{PORT}} --short --out {{KIT}}-short {{PAGE}} > {{KIT}}-short.log 2>&1; echo "EXIT=$?" >> {{KIT}}-short.log`- then `node $RUN/wait-log.mjs {{KIT}}-short.log`: the line `24 short-screen pictures checked, 0 with labels cut or+ then `node $RUN/wait-log.mjs {{KIT}}-short.log`: the line `27 short-screen pictures checked, 0 with labels cut oroverlapping, 0 skipped, 0 failed` and `EXIT=0`.6. Commit, only this page, one commit or more: `cd $WT && git add {{FILE}} && git commit -m "fix: {{TITLE}}: <what changed>"`;`git show --name-only --format=%H HEAD` shows the hash and `{{FILE}}` alone (where a ruling for this page changes its