Skip to content

Animate the interface: theme reveal, sliding toggles, sheets, chips and ring - #7

Merged
AndrianLeah merged 1 commit into
masterfrom
feat/motion
Nov 24, 2026
Merged

AndrianLeah merged 1 commit into
masterfrom
feat/motion

Conversation

@AndrianLeah

Copy link
Copy Markdown
Owner

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)

  • Motion tokens: a slow duration (420 ms), --ease-in and 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.
  • README: a Motion section listing what moves and how.

What moves

Where Before Now
Theme Switched at once The new theme opens as a circle from the tapped button
Segmented controls The highlight jumped One thumb slides under the choice; the label's weight eases
Sheets A short fade of everything The scrim darkens and blurs in while the panel slides up whole; on tablet and desktop the dialog rises and grows a little
Buttons Instant A press springs back; Start eases into Stop
String chips The outline jumped to the next string One cursor slides there; a tuned string's check pops in
Ring The note and the arc changed at once The note swaps for the next; a confirmed arc fades out; at the end the check draws itself and the ring bounces
Screen Appeared at once Rises in piece by piece
Tuning list Swapped instruments at once Cross-fades

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:

    • opening and closing the settings;
    • switching the theme and the language;
    • letting a simulated string be confirmed and move on to the next.

    Each animation runs as described.

  • Not checked: on a real phone.

🤖 Generated with Claude Code

…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>
@AndrianLeah
AndrianLeah merged commit d5064b7 into master Nov 24, 2026
1 check passed
@AndrianLeah
AndrianLeah deleted the feat/motion branch November 24, 2026 07:47
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