chapter 16
Motion library
Principle: done, not dazzling. Motion confirms that something happened. Nothing loops except the busy bar and the skeleton shimmer.
| # | Class | What moves | Duration · easing | Where | Reduced motion |
|---|---|---|---|---|---|
| 1 | mfp-m-hover |
Colour only | 150 ms · out | Buttons, links, rows | None |
| 2 | mfp-m-press |
1 px down | 150 ms · out | Buttons | None |
| 3 | mfp-m-arrow |
Trailing arrow 3 px | 150 ms · out | Text links | None |
| 4 | mfp-m-enter |
Fade and 4 px rise | 200 ms · out | Menus, tooltips | Appears |
| 5 | mfp-m-sheet |
Slides up | 250 ms · in-out | Bottom sheets | Appears |
| 6 | mfp-m-toast |
Fade and 8 px rise | 200 ms · out | Toasts | Appears |
| 7 | mfp-m-reveal |
Fade and 12 px rise, once | 480 ms · out | Marketing sections | Shown |
| 8 | mfp-m-tick |
The check draws | 250 ms · out | An item is done | Shown drawn |
| 9 | mfp-m-count |
Value fades 40→100% | 200 ms · linear | A figure updates | None |
| 10 | mfp-m-busy |
Bar travels | 1400 ms loop | Waiting without an end | Static bar |
| 11 | mfp-m-shimmer |
Highlight travels | 1600 ms loop | Skeleton rows | Static |
Tokens: dur-fast 150 ms, dur-base 200 ms, dur-slow 250 ms, dur-reveal 480 ms; ease-out cubic-bezier(0.16, 1, 0.3, 1); ease-in-out cubic-bezier(0.65, 0, 0.35, 1). Never: counting-up numbers, parallax, carousels, chart draw-ins, autoplay video with sound. No video loops are part of v1.0.
<link rel="stylesheet" href="tokens/tokens.css">
<link rel="stylesheet" href="tokens/motion.css">
<a class="btn btn-primary mfp-m-hover mfp-m-press" href="tel:+17252211682">Call (725) 221-1682</a>