Repository navigation
Animate the interface: theme reveal, sliding toggles, sheets, chips and ring - #7
Merged
Merged
Conversation
…nd ring The design system gains a motion layer: - tokens: a slow duration, plus ease-in and a gentle spring; - shared transitions (ui-fade, ui-swap, ui-pop) and keyframes; - revealChange(), which opens a whole-page change as a circle from the last tap, through the View Transitions API. What now moves: - the theme: it opens from the tapped button; - segmented controls: one thumb slides, and the label's weight eases; - sheets: the scrim fades and blurs in while the panel slides up whole, and on wider screens the dialog rises and grows; - buttons: a press springs back, and Start eases into Stop; - chips: the locked outline is a cursor that slides to the next string, and checks pop in; - the ring: notes swap, a confirmed arc fades out, and the final check draws itself with a small bounce; - the screen: it rises in piece by piece; - the tuning list: it cross-fades between instruments. Reduce Motion turns all of it off. The tuning engine is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
The interface changed state in jumps. This adds motion to the design system and uses it across the app. The tuning engine is unchanged.
Design system (
src/ui)--ease-inand a gentle--ease-spring, next to the existing ones.styles/motion.css: shared transitions for Vue's<Transition>(ui-fade,ui-swap,ui-pop) and keyframes (ui-rise,ui-draw).motion.ts:revealChange()runs a whole-page change through the View Transitions API, as a circle that opens from the last tap (from the centre after a key press). Browsers without the API, and Reduce Motion, just switch.UiIcon draw: the icon's strokes draw themselves in.What moves
Reduce Motion turns every animation off.
Checked
Checks:
vue-tsc, ESLint, 243 tests (new:motion.test.ts, the sliding thumb, the chip cursor, drawn icons) and the build pass.Frames: I captured frames in headless Chrome, with the animations slowed 4×, while:
Each animation runs as described.
Not checked: on a real phone.
🤖 Generated with Claude Code