Repository navigation
[M11] Motion layer (M11.9) - #99
Merged
Merged
Conversation
…gments Story M11.9. The hero stage opens with the shutter once; sections enter staggered via IntersectionObserver, applied only once the motion script runs so a failure hides nothing; towers build block by block and tiles rise, but fade instead when the action came from the keyboard; a flush moves the towers out as one group; segmented controls slide one indicator. tests/motion.spec.ts walks the CSSOM for transition: all, ease-in, layout properties and bare hover rules, and checks reduced motion, script failure and press feedback. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QWNkuQ7vhXw8ijQ3q3NZDG
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the motion from docs/FRONTEND_DESIGN.md section 8. CSS does everything it can (end of
page.css).web/src/motion.tshandles only what CSS can't: section entrances, input modality, and the flush group move.The moves
--ease-in-out), while the console settles fromscale(1.04). The keyframe animates the stage's own ten-point notch polygon from flat to notched, so the notch is never lost mid-move. Aninset()clip would have dropped it..motionclass, which the script adds once it knows the entrance can run. If the script fails, nothing is hidden.--surface-3. A flush moves the towers out as one group (220ms--ease-in-out), and the new tile rises in.--ease-in-out).scale(0.97)on every button and on the links too.<html>. A tower or tile fixes its entrance when it mounts, so it is not replayed when the visitor switches input. Keyboard-born ones fade, and keyboard segment moves don't slide.Acceptance criteria
scale(0.97)press feedback on every pressable element@media (hover: hover) and (pointer: fine)(CSSOM walk); keyboard-initiated actions don't animate travel (tested on a keyboard put and arrow keys on the dial)reducedMotion: 'reduce', all content is visible immediately and nothing travels or scalestransition: all,ease-in, and keyframes or transitions on width, height, top, left, margin, padding (it also asserts it actually saw the page's transitions and keyframes)document.getAnimations()); no content stays hidden if the motion script can't run (tested by removingIntersectionObserver)Test changes outside the new spec
house-rules.spec.tsnow scrolls through the page once (tests/support/reveal.ts) before auditing and taking screenshots. That way the sections below the fold are checked after their entrance, as a visitor sees them.console.spec.tstombstone test now polls for the settled colour, because the tombstone colour fades over 220ms.Verified locally (macOS)
pytest: 1304 passed, 6 skipped (/procdescriptor tests). Ruff is clean.console.spec.tskeyboard test, which pressesControl+A. That doesn't select all on macOS, so it is a Mac-only failure; it passes on Linux CI.Closes #87
🤖 Generated with Claude Code
https://claude.ai/code/session_01QWNkuQ7vhXw8ijQ3q3NZDG