// Motion for what the reader does: a button they press, a menu they open, a stepper they click, the // banner they dismiss. The classes below are added by nav.js on the reader's own action, never on a // live re-render, so a page that updates itself does not move on its own. Inline disclosures slide in // nav.js (slideDetails). Individual `translate` and `scale` are used, so a panel placed with // `transform` keeps its place. $ease-out: cubic-bezier(0.2, 0, 0, 1); // A press sinks the button a little. .button, button { &:active:not(:disabled) { scale: 0.97; } } // A stepper's number flashes the accent when a click moves it. input.tick { animation: tick 0.3s ease-out; } @keyframes tick { from { color: var(--accent); } } @media (prefers-reduced-motion: reduce) { .button, button { &:active:not(:disabled) { scale: none; } } details.pop[open] > :not(summary), input.tick { animation: none; } }