@sloppy-ai/skill 1.4.0 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/SKILL.md +34 -38
- package/package.json +1 -1
- package/references/motion-review.md +201 -0
- package/references/motion.md +5 -2
- package/references/verify.md +20 -0
- package/skill.json +2 -2
package/SKILL.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: sloppy
|
|
3
|
-
description: The AI slop UI &
|
|
3
|
+
description: The AI slop UI & motion fixer. Eliminates purple gradients, sparkle icons, boxed cards, floating frames, unearned loops, fade-up-everything scroll reveals, slow hovers, marquees without pause, and low-evidence TypeScript via 3-tier severity gates (Floor/Reflex/Finish), wiring guards, multi-width checks, decoupled looks, and MCP tools.
|
|
4
4
|
metadata:
|
|
5
|
-
version: 1.
|
|
5
|
+
version: 1.10.0
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# Sloppy: Anti-Slop Engine
|
|
@@ -11,30 +11,15 @@ Eliminate AI UI and TypeScript slop with deterministic source scanning, 3-tier s
|
|
|
11
11
|
|
|
12
12
|
---
|
|
13
13
|
|
|
14
|
-
## The Ponytail Lazy UI
|
|
15
|
-
|
|
16
|
-
"The best UI is the UI you never had to render."
|
|
17
|
-
|
|
18
|
-
1. **
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
- Use `<button type="button">` (not clickable `<div>` with state).
|
|
24
|
-
- Use `<dialog>` or native modal mechanisms.
|
|
25
|
-
- Use `<input type="date">`, `<select>`, `<input type="checkbox">` before assembling a 250-line custom dropdown.
|
|
26
|
-
- Use standard CSS grid/flexbox, `:has()`, and `accent-color` before adding layout calculation libraries.
|
|
27
|
-
3. **Rung 3: Single Surface Elevation (No Nested Card Bloat)**
|
|
28
|
-
- Stop nesting cards inside cards inside cards (`border border-neutral-800 rounded-xl p-4`).
|
|
29
|
-
- Use 1 clean, restrained surface step (`0 -> 1 -> 2`). Separate sub-items with clean vertical whitespace, subtle dividers (`divide-y divide-neutral-800/60`), or quiet indentation—never another bordered card container.
|
|
30
|
-
4. **Rung 4: Restrained Motion & Functional Transitions**
|
|
31
|
-
- Motion is strictly functional: orient spatial hierarchy on state changes.
|
|
32
|
-
- Prefer standard CSS transitions (`transition-opacity duration-150`) over heavy physics engines.
|
|
33
|
-
- Zero decorative infinite loops (`animate-bounce`, continuous rotation, unearned shimmers). Always guard with `useReducedMotion()` / `prefers-reduced-motion` (`MOT-03`).
|
|
34
|
-
5. **Rung 5: Radical Information & Copy Restraint**
|
|
35
|
-
- Strict word budget: 3–7 words per hero/card headline.
|
|
36
|
-
- Never invent marketing cheerleading or fake analytics stats.
|
|
37
|
-
- Use quiet neutral placeholder rows (`<Bar />` / `<div className="h-2 w-16 bg-muted rounded" />`) for peripheral secondary data.
|
|
14
|
+
## The Ponytail Lazy UI Ladder
|
|
15
|
+
|
|
16
|
+
"The best UI is the UI you never had to render." Climb this ladder and stop at the lowest rung that solves the request:
|
|
17
|
+
|
|
18
|
+
1. **UI YAGNI**: Never add unrequested widgets, filter pills, search bars, extra tabs, or modals to fill space.
|
|
19
|
+
2. **Native First**: Use `<button type="button">`, `<dialog>`, `<select>`, `<input>`, CSS Grid/Flexbox, `:has()`, and `accent-color` before custom div soup or layout libs.
|
|
20
|
+
3. **Single Surface**: Step 1 clean elevated surface (`0 -> 1 -> 2`). Separate items with whitespace or `divide-y`, never nested bordered cards.
|
|
21
|
+
4. **Restrained Motion**: One contract (`150-200ms` hover, `200-300ms` panels, `300-500ms` sheets), `ease-out` entrances from `0.9-0.96` (`MOT-11`, `MOT-16`), `transform`/`opacity` only (`MOT-04`), no `transition: all` (`MOT-06`), no `scale(0)` (`MOT-11`), no static hover lift (`MOT-14`), no scroll-reveal saturation (`MOT-08`), no uniform fade-up (`MOT-15`), no permanent `will-change` (`MOT-17`), no off-contract durations (`MOT-18`). Always guard reduced motion (`MOT-03`, `MOT-12`, `MOT-13`), add pause controls to autoplay (`MOT-09`), never flash >3/sec (`MOT-10`), and avoid unearned loops (`MOT-01`, `MOT-02`).
|
|
22
|
+
5. **Copy Budget**: 3-7 words per headline. Zero hype or fake stats. Use `<Bar />` placeholders for secondary data.
|
|
38
23
|
|
|
39
24
|
---
|
|
40
25
|
|
|
@@ -50,16 +35,16 @@ Load only the specialist needed for your active domain to minimize context token
|
|
|
50
35
|
| `sloppy-layoutmobile` | `>=66%` stage coverage, edge bleed, varied layouts, scroll safety | `STR-01`, `STR-02`, `UX-05` |
|
|
51
36
|
| `sloppy-code` | Accessible controls, valid handlers, stacking tokens, TS evidence | `AX-01`, `UX-02`, `TOK-01`, `COD-01`..`06` |
|
|
52
37
|
|
|
53
|
-
Deep topic guides (open only when needed): `references/craft.md`, `references/framing.md`, `references/motion.md`, `references/kit.md`, `references/bento.md`, `references/looks.md`, `references/verify.md`.
|
|
38
|
+
Deep topic guides (open only when needed): `references/craft.md`, `references/framing.md`, `references/motion.md`, `references/motion-review.md`, `references/kit.md`, `references/bento.md`, `references/looks.md`, `references/verify.md`.
|
|
54
39
|
|
|
55
40
|
---
|
|
56
41
|
|
|
57
42
|
## 3-Tier Severity Gates
|
|
58
43
|
|
|
59
|
-
1. **Floor (Hard CI Blockers)**: Contrast (`VIS-08`), dead handlers/links (`UX-02`), clickable `<div>` (`AX-01`), fabricated metrics (`CPY-01`), lorem ipsum (`CPY-07`), scroll lock (`UX-05`), `z-[9999]` (`TOK-01`), chained `!` (`COD-06`), missing reduced-motion (`MOT-03`). Never bypassed.
|
|
60
|
-
2. **Reflex (Overrulable AI Defaults)**: Purple gradients (`VIS-02`), gradient hero text (`VIS-01`), emerald monoculture (`VIS-03`), sparkles (`MED-02`), boxed cards (`STR-01`), floating frames (`STR-02`), infinite/layout-thrash motion (`MOT-01`, `MOT-02`, `MOT-04`), chained casts / `any` returns (`COD-02`, `COD-03`, `COD-04`). Pass in CI only with written rationale in `sloppy.config.json` (`overrules`) or inline:
|
|
44
|
+
1. **Floor (Hard CI Blockers)**: Contrast (`VIS-08`), dead handlers/links (`UX-02`), clickable `<div>` (`AX-01`), fabricated metrics (`CPY-01`), lorem ipsum (`CPY-07`), scroll lock (`UX-05`), `z-[9999]` (`TOK-01`), chained `!` (`COD-06`), missing reduced-motion (`MOT-03`), autoplay motion with no pause control (`MOT-09`), flashing/strobe animation (`MOT-10`). Never bypassed.
|
|
45
|
+
2. **Reflex (Overrulable AI Defaults)**: Purple gradients (`VIS-02`), gradient hero text (`VIS-01`), emerald monoculture (`VIS-03`), sparkles (`MED-02`), boxed cards (`STR-01`), floating frames (`STR-02`), infinite/layout-thrash motion (`MOT-01`, `MOT-02`, `MOT-04`), `transition: all` (`MOT-06`), slow hovers (`MOT-07`), scroll-reveal saturation (`MOT-08`), `scale(0)` entrances (`MOT-11`), unguarded CSS loops (`MOT-12`), parallax/3D tilt (`MOT-13`), hover lift on static cards (`MOT-14`), uniform entrance motion (`MOT-15`), overshoot/elastic easing (`MOT-16`), chained casts / `any` returns (`COD-02`, `COD-03`, `COD-04`). Pass in CI only with written rationale in `sloppy.config.json` (`overrules`) or inline:
|
|
61
46
|
`// sloppy-override: VIS-02 Client brand requirement`
|
|
62
|
-
3. **Finish (Advisory)**: Narration comments (`COD-01`), empty object spreads (`COD-05`), sterile surfaces (`LIV-01`), minor rhythm polish. Never blocks CI.
|
|
47
|
+
3. **Finish (Advisory)**: Narration comments (`COD-01`), empty object spreads (`COD-05`), permanent `will-change` hints (`MOT-17`), durations outside the declared motion scale (`MOT-18`), sterile surfaces (`LIV-01`), minor rhythm polish. Never blocks CI.
|
|
63
48
|
|
|
64
49
|
---
|
|
65
50
|
|
|
@@ -78,18 +63,29 @@ sloppy check src/ --changed --strict --compact --json
|
|
|
78
63
|
sloppy audit src/ --code --strict --compact --json
|
|
79
64
|
sloppy audit src/Hero.tsx --mode after && sloppy fix src/Hero.tsx --only 1,3 --write
|
|
80
65
|
sloppy verify http://127.0.0.1:1355 --a11y --multi-width
|
|
81
|
-
sloppy
|
|
82
|
-
sloppy
|
|
66
|
+
sloppy verify http://127.0.0.1:1355 --motion sloppy.motion.json
|
|
67
|
+
sloppy brief "<project brief>" --write && sloppy looks --deal
|
|
68
|
+
sloppy init --look <name> # writes palette, type, density, layout and motion contract
|
|
69
|
+
sloppy verify http://127.0.0.1:1355 --tells # advisory rendered checks at desktop/tablet/phone
|
|
70
|
+
sloppy review http://127.0.0.1:1355 # screenshots + self-contained fresh-context review prompt
|
|
71
|
+
sloppy eval benchmarks/results.json # blind preference + per-rule labeled metrics
|
|
72
|
+
sloppy hook install && sloppy gate
|
|
73
|
+
sloppy libs && sloppy list motion
|
|
83
74
|
```
|
|
84
75
|
|
|
76
|
+
Rendered visual tells are craft signals. They do not fail `verify`; browser or target
|
|
77
|
+
unavailability still exits with an error. Use `sloppy review` to capture the screenshots
|
|
78
|
+
and hand `review.md` to a reviewer with no source-code context. Evaluation claims require
|
|
79
|
+
the labeled protocol in `benchmarks/EVALUATION.md`; regression fixtures alone are not proof.
|
|
80
|
+
|
|
85
81
|
---
|
|
86
82
|
|
|
87
83
|
## Core Craft Summary (7 Rules)
|
|
88
84
|
|
|
89
|
-
1. **Ground & Elevate**: Step surfaces `0 -> 1 -> 2 -> 3` (`bg-neutral-950` -> `neutral-900` -> `neutral-800`)
|
|
90
|
-
2. **Budget Copy**: Keep 3
|
|
91
|
-
3. **Frame & Bleed**: Fill `>= 66%` of stage width and bleed filler off
|
|
92
|
-
4. **Purposeful Motion**: Guard
|
|
93
|
-
5. **Authentic Chrome & Icons**: Use
|
|
85
|
+
1. **Ground & Elevate**: Step surfaces `0 -> 1 -> 2 -> 3` (`bg-neutral-950` -> `neutral-900` -> `neutral-800`); avoid identical bordered cards.
|
|
86
|
+
2. **Budget Copy**: Keep 3-7 real strings per hero/illustration (`<Bar />` for filler); no lorem ipsum or invented round-number metrics.
|
|
87
|
+
3. **Frame & Bleed**: Fill `>= 66%` of stage width and bleed filler off one edge; verify across 8 widths (375px-1920px).
|
|
88
|
+
4. **Purposeful Motion**: Guard reduced motion (`MOT-03`, `MOT-12`, `MOT-13`), animate `transform`/`opacity` (`MOT-04`), clean up WebGL/Lottie/Lenis (`MOT-05`), and keep feedback <300ms (`MOT-07`).
|
|
89
|
+
5. **Authentic Chrome & Icons**: Use semantic icons (`Activity`, `Zap`, `Terminal`, `Database`), never decorative sparkles or raw emojis (`MED-01`).
|
|
94
90
|
6. **TypeScript Honesty**: Zero `as unknown as T`, unvalidated `any`/`unknown` returns, `Record<string, any>`, or `foo!.bar`. Strict ignores require rationale (`// sloppy-ignore-next-line RULE -- reason`).
|
|
95
|
-
7. **Target Grade A+ (>=95/100)**: Run `sloppy rubric <file>` and `sloppy check --strict` before
|
|
91
|
+
7. **Target Grade A+ (>=95/100)**: Run `sloppy rubric <file>` and `sloppy check --strict` before completion. Keep code and docs emoji-free and use Conventional Commits.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sloppy-ai/skill",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0",
|
|
4
4
|
"description": "The ultimate AI slop UI fixer combining Stageshow craft, 7 UI ecosystems, surgical auto-fixer, 3-tier severity gates (Floor/Reflex/Finish), and wiring guard.",
|
|
5
5
|
"main": "SKILL.md",
|
|
6
6
|
"publishConfig": {
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
# Motion Review
|
|
2
|
+
|
|
3
|
+
The craft rules for animation live in `motion.md`; this file is the audit that decides
|
|
4
|
+
whether a page's motion is designed or generated. Use it before shipping any page with
|
|
5
|
+
hover, enter, scroll, loop, or gesture motion, and when reviewing motion the linter
|
|
6
|
+
flagged. Every threshold here is grounded in the sources at the end.
|
|
7
|
+
|
|
8
|
+
## Index
|
|
9
|
+
|
|
10
|
+
1. [The gate: should it animate at all](#the-gate-should-it-animate-at-all)
|
|
11
|
+
2. [The motion contract](#the-motion-contract)
|
|
12
|
+
3. [Timing and easing by job](#timing-and-easing-by-job)
|
|
13
|
+
4. [Property discipline](#property-discipline)
|
|
14
|
+
5. [The AI motion-slop catalog](#the-ai-motion-slop-catalog)
|
|
15
|
+
6. [Accessibility gates](#accessibility-gates)
|
|
16
|
+
7. [The review procedure](#the-review-procedure)
|
|
17
|
+
8. [Sources](#sources)
|
|
18
|
+
|
|
19
|
+
## The gate: should it animate at all
|
|
20
|
+
|
|
21
|
+
Ask in this order and stop at the first "no":
|
|
22
|
+
|
|
23
|
+
1. **How often will a person see it?** Motion on a keyboard-repeated action (command
|
|
24
|
+
palette open, tab switch, row selection, submit) is a tax paid hundreds of times a
|
|
25
|
+
day. Do not animate it. Motion on a rare, delightful moment is where the budget goes.
|
|
26
|
+
2. **What does it explain?** Motion must explain where something came from, where it
|
|
27
|
+
went, or how a value changed. If the answer is "it makes the page feel alive", cut it.
|
|
28
|
+
3. **What is the cheapest tool that works?** CSS transition before CSS animation, CSS
|
|
29
|
+
before a library, `@starting-style`/View Transitions before hand-rolled JS. A motion
|
|
30
|
+
library is for gestures, interruption, and shared layout, not for fades.
|
|
31
|
+
4. **What happens with reduced motion?** Reduced motion simplifies, it does not delete
|
|
32
|
+
the state change: opacity and instant position changes remain, travel and scale go.
|
|
33
|
+
|
|
34
|
+
The most common failure is not a bad curve. It is animating an element that had no
|
|
35
|
+
reason to move.
|
|
36
|
+
|
|
37
|
+
## The motion contract
|
|
38
|
+
|
|
39
|
+
A page has one motion personality, in the same way it has one palette. Decide these
|
|
40
|
+
before writing a transition, record them in `DESIGN.md`, and keep every component on
|
|
41
|
+
them.
|
|
42
|
+
|
|
43
|
+
| Token | Rule |
|
|
44
|
+
| :--- | :--- |
|
|
45
|
+
| Duration scale | Three durations, chosen by size: `fast` = 150–200ms (hover, press, tooltip), `base` = 200–300ms (dropdown, popover, small panel), `slow` = 300–500ms (sheet, drawer, full-screen surface). Storytelling may exceed this; product feedback may not. |
|
|
46
|
+
| Curves | One entrance curve (`ease-out`, e.g. `cubic-bezier(0.16, 1, 0.3, 1)`), one exit/travel curve. `ease-in` is wrong for entrances. `linear` is wrong for anything a person watches. |
|
|
47
|
+
| Spring | Springs are for gestures and direct manipulation, never for a hover or a tooltip. An overshoot is allowed on one small expressive icon, never on readable text or a whole surface. |
|
|
48
|
+
| Feedback ceiling | One maximum for hovers, presses, and focus. Default 600ms; a project may declare a tighter value (`motion-max-feedback`) and `MOT-07` enforces it. |
|
|
49
|
+
| Signature | One signature move per page. Everything else stays quiet. Two competing signature moves read as a template. |
|
|
50
|
+
| Triggers | Familiar triggers: hover, press, open, navigate, drop. Never a background loop, never a scroll-jack, never a cursor follower as the main event. |
|
|
51
|
+
| Origin | A popover grows from the trigger (`transform-origin: var(--transform-origin)`), a sheet from its edge. Never from the centre of the screen unless the trigger is there. |
|
|
52
|
+
|
|
53
|
+
## Timing and easing by job
|
|
54
|
+
|
|
55
|
+
| Job | Curve | Duration | Notes |
|
|
56
|
+
| :--- | :--- | :--- | :--- |
|
|
57
|
+
| Hover and press feedback | `ease-out` | 100–150ms | Start on the input. A presentation delay reads as lag. `:active` scale 0.97 is enough. |
|
|
58
|
+
| Tooltip, chip, small popover | `ease-out` | 150–200ms | Grow from the trigger. Skip the delay and animation on subsequent tooltips in the same group. |
|
|
59
|
+
| Dropdown, menu, combobox | `ease-out` | 160–240ms | Enter from 0.96 scale plus fade, not from 0. Never mid-fade at a standstill. |
|
|
60
|
+
| Modal, sheet, drawer | `ease-out` (enter), `ease-in` (exit) | 250–400ms | Exit faster than entrance. Large surfaces may be a little slower than small ones. |
|
|
61
|
+
| Tab or page body swap | `ease-out` | 150–250ms | Crossfade the body, keep chrome and tab indicator steady. |
|
|
62
|
+
| Shared-element or layout change | spring or `ease-in-out` | 300–500ms | The only place a spring belongs on non-gesture motion. Interruptions must retarget from the current geometry. |
|
|
63
|
+
| Scroll-driven reveal | `ease-out` | 300–600ms | One motif, content must exist and be readable without JS. |
|
|
64
|
+
| Story beat in a product demo | `cubic-bezier(0.45, 0, 0.1, 1)` travel | 0.8–1s travel | Demo motion is allowed to be slower than product feedback; never use demo pacing in a real control. |
|
|
65
|
+
|
|
66
|
+
Rules that survive every table:
|
|
67
|
+
|
|
68
|
+
- **Duration scales with distance and size,** not with taste. A 4px tooltip nudge and a
|
|
69
|
+
full-screen sheet cannot share a duration.
|
|
70
|
+
- **One duration/easing for everything flattens the hierarchy.** If every element on
|
|
71
|
+
the page arrives in 500ms on the same curve, nothing has emphasis.
|
|
72
|
+
- **Exit follows the way in,** quicker. If a panel grew from the top-right, it leaves
|
|
73
|
+
toward the top-right.
|
|
74
|
+
- **Interruptible by default.** State changes use transitions so a reversed hover or a
|
|
75
|
+
reopened menu retargets mid-flight instead of restarting.
|
|
76
|
+
- **Nothing pops.** Every entrance has an exit; nothing appears at full size in one
|
|
77
|
+
frame. This includes borders, dashed outlines, and text that swaps.
|
|
78
|
+
- **Hold the result.** After the payoff, stop. A useful still needs no pulse, shimmer,
|
|
79
|
+
or repeated count.
|
|
80
|
+
|
|
81
|
+
## Property discipline
|
|
82
|
+
|
|
83
|
+
Animate only what the compositor can carry:
|
|
84
|
+
|
|
85
|
+
| Safe | Costly | Never |
|
|
86
|
+
| :--- | :--- | :--- |
|
|
87
|
+
| `transform` (translate, scale, rotate) | `clip-path`, `filter: blur()`, `backdrop-filter` (paint-bound; small regions only) | `width`, `height`, `top`, `left`, `right`, `bottom`, `margin`, `padding`, `gap` |
|
|
88
|
+
| `opacity` | `box-shadow` (repaint; animate a pseudo-element's opacity instead) | `transition: all` |
|
|
89
|
+
| `color`, `background-color`, `border-color` (short, small areas) | `border-radius` on a large surface | `display` / `visibility` without `@starting-style` or `allow-discrete` |
|
|
90
|
+
|
|
91
|
+
- `will-change` is a hint for a known upcoming animation, added just before it and
|
|
92
|
+
removed after. Leaving it on many elements creates layers and memory pressure
|
|
93
|
+
(`MOT-17` flags a page that declares it three or more times).
|
|
94
|
+
- A single 60fps frame budget is ~16.7ms for everything on the page. Two backdrop
|
|
95
|
+
filters, a particle canvas, and a scroll smoother in one viewport do not fit.
|
|
96
|
+
- Animate the child, not the layer that holds readable text. Scaling a text container
|
|
97
|
+
blurs glyphs mid-flight or leaves them on a half-pixel at rest.
|
|
98
|
+
- Use `@starting-style` and `transition-behavior: allow-discrete` for entry/exit of
|
|
99
|
+
popovers and modals instead of mounting a wrapper with a JS timeout.
|
|
100
|
+
- Prefer CSS scroll-driven animations (`animation-timeline: scroll()`) over JS scroll
|
|
101
|
+
listeners for non-essential effects.
|
|
102
|
+
|
|
103
|
+
## The AI motion-slop catalog
|
|
104
|
+
|
|
105
|
+
These are the tells. Each maps to a canonical rule where the scanner can prove it.
|
|
106
|
+
|
|
107
|
+
| Tell | Why it reads as generated | Rule | Fix |
|
|
108
|
+
| :--- | :--- | :--- | :--- |
|
|
109
|
+
| **Everything fades up on scroll** — every section enters with the same `opacity 0 → 1`, `translateY(20px)` | The default of every page builder; content is invisible until JS runs | `MOT-08` | Render content visible. Keep one restrained reveal, or none. |
|
|
110
|
+
| **The same entrance on every block** — four or more elements share one identical `initial`/`animate` pair, one `fadeInUp` keyframe on many selectors, or any mount motion on `h1`-`h6`, `p`, or `nav` | Polish applied uniformly with no hierarchy; reading is delayed to show off the fade | `MOT-15` | One entrance motif on the focal element; text and navigation render visible. |
|
|
111
|
+
| **Blur-in on every card and heading** — `filter: blur(4px)` in every entering element | The polished-entrance recipe copied everywhere; blurs text on first paint | `MOT-15` | Blur only one focal surface, never readable text; prefer opacity and 8-12px travel. |
|
|
112
|
+
| **Bouncy dialog and spring on routine surfaces** — `cubic-bezier(…, 1.56, …)`, `animate-bounce`, overshoot springs on modals and cards | Copying a playful gesture recipe where no gesture exists | `MOT-16` | Routine surfaces enter on `ease-out`; overshoot stays on one small expressive icon. |
|
|
113
|
+
| **One curve and one duration everywhere** | Reads as a single template transition applied globally | `MOT-07` (slow), `MOT-18` (off-contract), motion contract | Three durations, entrance vs exit curves, and values from the declared scale. |
|
|
114
|
+
| **`transition-all`** | Animates properties nobody chose, including layout | `MOT-06` | Name the properties. |
|
|
115
|
+
| **Hover lift on static cards** (`hover:-translate-y-1`, `hover:scale-105` on a non-interactive `div`) | Promises a click that does not exist | `MOT-14` | Remove it, or make the whole card a real control. |
|
|
116
|
+
| **Infinite marquee / logo strip / auto-carousel** | Autoplay decoration with no pause, often over 5s | `MOT-09` | Add a keyboard pause, or make it finite. |
|
|
117
|
+
| **Blinking status dot / pulse badge** | Decorative liveness with no telemetry | `CPY-02`, `MOT-01` | Bind it to real state or delete it. |
|
|
118
|
+
| **Entrance from `scale(0)`** | Object appears from nowhere instead of growing | `MOT-11` | Start at 0.9–0.96. |
|
|
119
|
+
| **Sparkle shimmer, gradient sweep, aurora blobs behind text** | Atmosphere standing in for product content | `VIS-02`, `VIS-07`, `MOT-01` | Real product surface or nothing. |
|
|
120
|
+
| **Magnetic buttons, custom cursor followers, cursor spotlight** | Novelty that delays the actual click and disappears on touch | — | Delete unless the cursor is the product. |
|
|
121
|
+
| **3D tilt on every card** (`perspective` + `rotateX/Y` on hover) | Awwwards-kit default; large-area motion, often unguarded | `MOT-13` | One tilt at most, small angle, reduced-motion guarded. |
|
|
122
|
+
| **Parallax and fixed backgrounds on mobile** | Jank plus vestibular risk | `MOT-13`, `MOT-03` | Disable under reduced motion and on small screens. |
|
|
123
|
+
| **Scroll-jacking / smoothed wheel (Lenis) on a marketing page** | Hijacks native scroll for a page that did not need it | `UX-05` | Remove it unless scroll storytelling is the product. |
|
|
124
|
+
| **Letter-by-letter heading animation** | Slow to read, hurts LCP, degrades screen readers | `MOT-08` (when repeated) | Animate the line, not the letters. |
|
|
125
|
+
| **Counting numbers on scroll with no cause** | Number moves without a data change | — | Animate on a real value update, and hold the final value. |
|
|
126
|
+
| **Skeleton shimmer everywhere** | Perpetual motion where a quiet placeholder would do | `MOT-01`, `MOT-12` | Static placeholder, or one short shimmer with reduced-motion fallback. |
|
|
127
|
+
| **Animated gradient text/background** | The Gen-1 AI signature, still common | `VIS-01`, `MOT-01` | Solid ink, single accent. |
|
|
128
|
+
| **`animate-bounce` on a scroll-down chevron** | Decoration with no state | `MOT-01` | Static affordance. |
|
|
129
|
+
|
|
130
|
+
A page that fixes every table row but still animates a keyboard action is worse off
|
|
131
|
+
than a quiet page. Frequency beats aesthetics.
|
|
132
|
+
|
|
133
|
+
## Accessibility gates
|
|
134
|
+
|
|
135
|
+
- **`prefers-reduced-motion` is a requirement, not a nicety.** Simplify: remove travel,
|
|
136
|
+
zoom, parallax, and loops; keep opacity/instant state changes. Do not set every
|
|
137
|
+
duration to 0 and leave the element unmounted mid-state.
|
|
138
|
+
- **WCAG 2.2.2 Pause, Stop, Hide:** any motion that starts automatically, lasts more
|
|
139
|
+
than five seconds, and sits beside other content needs a visible, keyboard-operable
|
|
140
|
+
pause/stop/hide control. `prefers-reduced-motion` does not replace the control.
|
|
141
|
+
- **WCAG 2.3.1 Three Flashes:** nothing may flash more than three times in any one
|
|
142
|
+
second, regardless of motion preference. No strobe, no rapid invert.
|
|
143
|
+
- **WCAG 2.3.3 Animation from Interactions (AAA):** interaction-triggered motion that
|
|
144
|
+
can cause vestibular symptoms (parallax, large zoom, tilt, full-screen travel) must be
|
|
145
|
+
disableable unless it is essential.
|
|
146
|
+
- **2.5.8 / pointer targets:** motion must not shrink or move the hit area under the
|
|
147
|
+
pointer; a button that scales down on press still needs a 24×24 CSS px target.
|
|
148
|
+
- Do not animate a keyboard-initiated action. If the flow is reachable by repeated key
|
|
149
|
+
presses, the animation becomes latency.
|
|
150
|
+
- Check the reduced-motion view for broken layout: content that only appears after a
|
|
151
|
+
scroll observer must still exist when motion is off.
|
|
152
|
+
- Check the no-JavaScript view: first-screen content must be present in the HTML.
|
|
153
|
+
|
|
154
|
+
## The review procedure
|
|
155
|
+
|
|
156
|
+
1. **Static pass.** Run `sloppy check <path> --strict --compact`. Read every MOT
|
|
157
|
+
finding; do not silence one without a written rationale in `sloppy.config.json` or
|
|
158
|
+
`sloppy-override`.
|
|
159
|
+
2. **Rendered pass.** Run `sloppy verify <url> --a11y --multi-width`, and for declared
|
|
160
|
+
flows add `--motion <spec.json>`; every flag shares one browser, so one command is
|
|
161
|
+
one launch. A spec interaction may open from the keyboard (`openKey`) and close with
|
|
162
|
+
a key (`closeKey`), and `precondition` steps set up a state before it is measured.
|
|
163
|
+
Run `--repeat 3 --baseline motion-baseline.json` before trusting frame or layout
|
|
164
|
+
numbers. The accessibility pass now also renders the page with JavaScript disabled
|
|
165
|
+
and reports `motion.jsDependentFirstPaint` when the content only appears afterward.
|
|
166
|
+
The interaction audit re-runs every
|
|
167
|
+
declared interaction under `prefers-reduced-motion: reduce` and reports leftover
|
|
168
|
+
travel (`motion.reducedMotionTravel`), a state change that disappears
|
|
169
|
+
(`motion.reducedMotionHidesContent`), and loops that keep running
|
|
170
|
+
(`motion.reducedMotionKeepsLoop`). The a11y pass adds infinite autoplay without a
|
|
171
|
+
pause control, slow interaction transitions, 320px overflow, and target-size failures.
|
|
172
|
+
3. **Slow-motion pass.** In devtools, slow animations to 10–25% and watch one change
|
|
173
|
+
end to end: onset, travel, overlap, landing, hold. Check the first and last frames
|
|
174
|
+
as stills; text blurred mid-flight or a half-pixel landing counts as a defect.
|
|
175
|
+
4. **Interruption pass.** Reverse the hover, reopen the menu mid-close, press the
|
|
176
|
+
submit twice. Nothing should restart from zero, jump, or leave two overlapping
|
|
177
|
+
surfaces.
|
|
178
|
+
5. **Reduced-motion pass.** Emulate `prefers-reduced-motion: reduce`; the page must stay
|
|
179
|
+
complete and legible, and loops/travel must stop.
|
|
180
|
+
6. **Absence pass.** Turn JavaScript off. First-screen content must be readable and the
|
|
181
|
+
primary action usable.
|
|
182
|
+
7. **Budget pass.** Record a performance profile of the first interaction. If the
|
|
183
|
+
animation drops frames on a mid-range laptop, it is not a motion problem to tune; it
|
|
184
|
+
is a property or layer problem to fix.
|
|
185
|
+
|
|
186
|
+
Report what you watched and what you could not judge. A static scan alone is not
|
|
187
|
+
evidence that motion feels right.
|
|
188
|
+
|
|
189
|
+
## Sources
|
|
190
|
+
|
|
191
|
+
- [Chrome: Modern Web Guidance — Motion](https://developer.chrome.com/docs/modern-web-guidance/guides/ui-behaviors/motion) — compositor-only properties, `@starting-style`, View Transitions, WCAG 2.2.2 and 2.3.1 guidance.
|
|
192
|
+
- [Emil Kowalski: Great Animations](https://emilkowal.ski/ui/great-animations) — under 300ms, ease-out for entrances, never animate keyboard actions, purposeful motion.
|
|
193
|
+
- [Emil Kowalski: 7 Practical Animation Tips](https://emilkowal.ski/ui/7-practical-animation-tips) — press scale, do not animate from `scale(0)`, tooltip delay, enter/exit curves, transform-origin.
|
|
194
|
+
- [WCAG 2.2.2 Pause, Stop, Hide](https://www.w3.org/WAI/WCAG22/Understanding/pause-stop-hide.html)
|
|
195
|
+
- [WCAG 2.3.1 Three Flashes or Below Threshold](https://www.w3.org/WAI/WCAG22/Understanding/three-flashes-or-below-threshold.html)
|
|
196
|
+
- [WCAG 2.3.3 Animation from Interactions](https://www.w3.org/WAI/WCAG22/Understanding/animation-from-interactions.html)
|
|
197
|
+
- [Apple Human Interface Guidelines: Motion](https://developer.apple.com/design/human-interface-guidelines/motion) — reduced motion, purposeful motion, custom easing.
|
|
198
|
+
- [Impeccable: Slop — Motion rules](https://impeccable.style/slop) — pulsing status dots, fake carets, auto-marquees, bouncy dialogs.
|
|
199
|
+
- [design-motion-principles anti-checklist](https://github.com/kylezantos/design-motion-principles/blob/main/skills/design-motion-principles/references/anti-checklist.md) — uniform fade-ups (flag at four or more components), blur-everywhere entrances, motion on static content.
|
|
200
|
+
- [Adamarant: Functional UI animation in 2026 checklist](https://adamarant.com/en/blog/functional-ui-animation-in-2026-the-checklist-before-it-ships) — duration bands, easing as a verb, `ease-in` never on UI.
|
|
201
|
+
- [Paralect: signs of AI slop in design](https://www.paralect.com/blog/signs-of-ai-slop-in-design) — heavy appear animations on every block, motion with nothing to say.
|
package/references/motion.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Motion
|
|
2
2
|
|
|
3
|
-
The rules for everything that moves: the story, the loop, pace, text that changes, things that arrive and leave, the cursor, drags, scrolling and the camera. The still frame is in `craft.md`; each kit part's props are in `kit.md`.
|
|
3
|
+
The rules for everything that moves: the story, the loop, pace, text that changes, things that arrive and leave, the cursor, drags, scrolling and the camera. The still frame is in `craft.md`; each kit part's props are in `kit.md`; the timing, easing, property, and anti-slop audit is in `motion-review.md`.
|
|
4
4
|
|
|
5
5
|
## Index
|
|
6
6
|
|
|
@@ -54,6 +54,8 @@ Pick the shape from what the product is valued for; a demo forced into the wrong
|
|
|
54
54
|
|
|
55
55
|
## Pace and easing
|
|
56
56
|
|
|
57
|
+
Product timing and the curves the scanner checks are in `motion-review.md` (timing by job, `MOT-06`..`MOT-14`).
|
|
58
|
+
|
|
57
59
|
- **Unhurried, on two curves.** Travel: `cubic-bezier(0.45, 0, 0.1, 1)`. Arrival from nowhere: `cubic-bezier(0.25, 0.8, 0.25, 1)` over 0.8 to 1s. Judge distance and overlap, not duration (`examples/payout-flow`).
|
|
58
60
|
- **Travel has a departure, clear travel and a soft arrival;** length alone does not make it fluid.
|
|
59
61
|
- **Choose durations and easings together by job;** one easing everywhere flattens the hierarchy; an accumulating number may take longer than its transfer (`choreography.md`).
|
|
@@ -62,7 +64,8 @@ Pick the shape from what the product is valued for; a demo forced into the wrong
|
|
|
62
64
|
- **Related updates can each take a different time;** the result still follows its cause.
|
|
63
65
|
- **Stagger groups in reading order 40 to 80ms apart** within a scene (`act.stagger` default 60); 80 to 120ms between tiles of a grid. One object enters whole; holds are beats too (`examples/calendar`).
|
|
64
66
|
- **Introducing a composition:** a small front-loaded movement can settle longer than its busy part; don't scale readable text much.
|
|
65
|
-
- **A small expressive icon may overshoot** while its card and text settle without bounce; keep the accent local; give the final state time to read.
|
|
67
|
+
- **A small expressive icon may overshoot** while its card and text settle without bounce; keep the accent local; give the final state time to read. Overshoot belongs to that icon, never to a dialog or a card (`MOT-16`).
|
|
68
|
+
- **One entrance motif per page:** the same fade-up on four or more blocks, or any mount motion on headings, paragraphs and navigation, reads as a template (`MOT-15`); animate the focal element and let the rest arrive visible.
|
|
66
69
|
- **Color changes between distant hues take about 200ms** (they pass through mud however done); let the label carry the slower motion.
|
|
67
70
|
- **Holding a result means stop:** a useful still needs no new pulse or repeated count.
|
|
68
71
|
|
package/references/verify.md
CHANGED
|
@@ -65,6 +65,26 @@ The last pass. Every answer comes from a frame you looked at, never from the cod
|
|
|
65
65
|
| A gate line you think is intentional | Look again; if it still looks fine, say so in REHEARSAL.md with the frame; never clear it by hiding the thing |
|
|
66
66
|
| Ten film runs, gate green, frame unchanged | Stop. Fresh eye |
|
|
67
67
|
|
|
68
|
+
## Served motion interactions
|
|
69
|
+
|
|
70
|
+
A static scan cannot prove a transition lands, retargets, or holds its surroundings. When a page has a declared interaction, run the deterministic motion audit against a served URL:
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
sloppy verify http://localhost:3000 --motion sloppy.motion.json
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
The spec names only your own selectors; Sloppy never clicks arbitrary production controls:
|
|
77
|
+
|
|
78
|
+
```json
|
|
79
|
+
{
|
|
80
|
+
"interactions": [
|
|
81
|
+
{ "name": "filter menu", "trigger": "#open", "target": "#panel", "anchor": "header", "closeTrigger": "#close", "waitMs": 500 }
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
It reports six observed failures: `motion.handoffShift` (the element moves after settling), `motion.anchorDrift` (the surrounding geometry moves with the target), `motion.stuckTransition` (a finite animation still runs after the settle window), `motion.interruptNotRecovered` (a reversed open/close is left half-open), `motion.layoutShift` (the interaction moves other content, reported as craft evidence from observed shift entries), and `motion.focusLoss` (closing does not return focus to the trigger). Each interaction is re-run under `prefers-reduced-motion: reduce` and reports leftover travel (`motion.reducedMotionTravel`), a deleted state change (`motion.reducedMotionHidesContent`), and loops that keep running (`motion.reducedMotionKeepsLoop`). A frame-budget line is reported only as low-confidence craft evidence. `sloppy init` writes a starter `sloppy.motion.json`, and `--motion` without a path reads it from the project root. A selector that is absent is reported as `motion.missingSelector`, never a silent pass. Exit `1` means findings, exit `2` means no browser or no spec; it never reports a pass without observing the interaction.
|
|
87
|
+
|
|
68
88
|
## Hand over
|
|
69
89
|
|
|
70
90
|
- `REHEARSAL.md` written beside the component? A template:
|
package/skill.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sloppy",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "Universal anti-slop UI craft engine. Enforces 3-tier severity gates (Floor/Reflex/Finish), wiring guard, multi-width rendering, and design DNA extraction.",
|
|
3
|
+
"version": "1.10.0",
|
|
4
|
+
"description": "Universal anti-slop UI & motion craft engine. Enforces 3-tier severity gates (Floor/Reflex/Finish), a one-contract motion budget, wiring guard, multi-width rendering, and design DNA extraction.",
|
|
5
5
|
"entry": "SKILL.md",
|
|
6
6
|
"author": "Pavanspoojary",
|
|
7
7
|
"repository": "https://github.com/Pavanspoojary/slopy",
|