Motion Kit Apply
ASecurityProduct-grade UI craft, anti-AI-slop discipline, and framework-agnostic motion specifications for ANY frontend stack (React, Vue, Tailwind, Taro, Mini Program, Flutter, SwiftUI, or vanilla HTML/CSS). Activate automatically whenever building or polishing UI components, pages, modals, drawers, dropdowns, accordions, popovers, forms, dashboards, AI chat/voice interfaces, data visualizations, or interactive animations — including state buttons, toast stacks, smooth accordions, anchored popovers, ...
- 2 stars
- 0 votes
- 0 copies
- 1 view
- Added December 4, 2026
Works with
Security analysis
100/100Pro scans all 20 files and shows the line behind each finding
npx -y skills add Wangjian-damon/motion-kit --skill motion-kit-apply --agent claude-codeAre you the author of Motion Kit Apply?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/wangjian-damon-motion-kit-apply)---
name: motion-kit-apply
description: >-
Product-grade UI craft, anti-AI-slop discipline, and framework-agnostic motion
specifications for ANY frontend stack (React, Vue, Tailwind, Taro, Mini Program,
Flutter, SwiftUI, or vanilla HTML/CSS). Activate automatically whenever building
or polishing UI components, pages, modals, drawers, dropdowns, accordions, popovers,
forms, dashboards, AI chat/voice interfaces, data visualizations, or interactive
animations — including state buttons, toast stacks, smooth accordions, anchored
popovers, live number flow, fluid-height containers, tooltip groups, dynamic pills,
scroll fades, AI streaming text, voice waves, live table flashes, count-up/odometer,
bottom/snap sheets, swipe/pull/edge-back gestures, shared-element transitions,
liquid glass refraction, or 3D/WebGL visuals — even if MotionKit is never mentioned.
---
# MotionKit · UI Craft & Cross-Platform Motion Guide (Apply)
This is a **self-contained, zero-library-leak** skill that combines two layers:
1. **Always-on UI Craft & Motion Baseline (Step 0)** — ensures every everyday component, dialog, list, form, and dashboard looks intentional, feels physically right, and survives real-world edge cases.
2. **69 Cross-Platform Motion Specs (Steps 1–3)** — progressive-disclosure physics constants, state machines, degradation contracts, and browser pitfall protections loaded only on demand.
---
## Step 0 · UI Craft & Motion Baseline (Always Active)
Apply these defaults to **every** UI you build or edit — even when no specific effect card is needed. When working inside an existing codebase or brand system (`DESIGN.md`, Tailwind tokens, Figma spec), inherit its palette and typography; use these rules as craft, physics, and resilience standards.
### 1. Motion Restraint & Physics
- **Decide whether to animate before how**: high-frequency interactions (typing, tab switching, bulk checkboxes, rapid filtering) use **no animation or ≤100ms**; reserve transitions (`160–300ms`) for low-frequency state changes (modals, drawers, toasts, destructive confirmations).
- **Tempo scale**: `80ms` press/color → `160ms` high-frequency micro-interaction cap → `240ms` default enter/popover → `380ms` panel/sheet. Routine UI transitions must stay **≤400ms**.
- **Strict easing discipline**:
- Entrances & popovers: **must use `ease-out`** (default `cubic-bezier(0.22, 1, 0.36, 1)`). **Never use `ease-in` for entrances.**
- On-screen position/layout morphs: use `ease-in-out` (`cubic-bezier(0.65, 0, 0.35, 1)`).
- **Never use `linear`** for UI interaction transitions (only for continuous loaders/marquees).
- **Restrained scale & anchor origin**: modals, dropdowns, and popovers **never start from `scale(0)`**. Start from `scale(0.95)` + `opacity: 0` and align `transform-origin` to the trigger element.
- **Compositor-only & interruptible**:
- Animate `transform` and `opacity` only. **Never write `transition: all`**.
- Never transition layout properties (`width`, `height`, `top`, `left`). For accordions/expanding containers, use `grid-template-rows: 0fr -> 1fr` or a measured inner wrapper (`fluid-height` spec).
- Every interaction animation must be interruptible mid-flight. Clear entrance `transition-delay` once mounted so later hover/press feedback is never delayed.
- **Pointer & reduced-motion hygiene**:
- Wrap **all** `:hover` rules in `@media (hover: hover)` so touch devices never get sticky hover states.
- Honor `prefers-reduced-motion: reduce` with the right contract: **reduce** core UI motion (1ms / zero displacement, keep subtle opacity fade), **turn off** decorative/3D animations, and **freeze** static glass/material surfaces (keep material styling, stop motion).
### 2. Visual Hierarchy, Interface Craft & Edge-Case Resilience (Design Engineering)
- **3-tier foreground ink hierarchy**: separate information cleanly into **Primary** (headings, key values), **Secondary** (~65% contrast for descriptions/body), and **Muted** (~45% for metadata/timestamps). Use slightly tight tracking on large headings (`-0.02em` to `-0.03em`), comfortable body line-height (`1.5–1.65`), and readable prose width (`55–70ch`).
- **Spatial rhythm & proximity (4/8px scale)**: keep spacing *inside* a related group tighter than spacing *between* groups (e.g., label-to-input `6–8px`, field-to-field `16–20px`, section-to-section `32–48px`). Give cards generous inner padding (`16–24px`).
- **One primary action per view**: each screen, modal, or toolbar has **at most one high-emphasis primary CTA**. Secondary actions use ghost/outline/neutral styling; destructive actions are visually separated and never placed flush against a primary confirm with identical visual weight.
- **Restrained surfaces & borders**: let neutral surfaces carry 90%+ of the canvas and reserve the single accent color for primary action, active state, and focus signals. Prefer low-opacity hairlines (`1px solid rgba(0, 0, 0, 0.08)` / `ring-1 ring-black/5` on light; `rgba(255, 255, 255, 0.10)` on dark) and subtle surface steps over harsh solid borders or nested cards-inside-cards.
- **Form & data discipline**: place persistent left-aligned labels above inputs (never rely solely on disappearing placeholders); keep inline validation anchored below the offending field without jumping unrelated rows; left-align text columns and right-align numeric columns with `font-variant-numeric: tabular-nums` to eliminate jitter.
- **Break-UI protection**: design for worst-case data, never ideal short mock strings:
- Long titles/usernames/emails must explicitly use `truncate` or `line-clamp`, **and flex/grid children using truncation must include `min-w-0`**.
- Always handle **empty, loading, disabled, error, and `:focus-visible`** states, plus long-list scroll containment.
- On mobile/touch interfaces, interactive hit targets must be **≥44×44px** (do not bloat dense desktop toolbars unnecessarily).
### 3. Anti-AI-Slop Floor
Unless explicitly requested by the user or required by an existing brand spec, **never generate**:
- Cliché purple-to-blue gradients, meaningless diffuse glow blobs, or gratuitous glassmorphism stacked on ordinary business cards.
- Cookie-cutter "3 centered columns + soft circular icon + heading + 2 filler sentences" feature grids.
- Decorative pills/badges and emoji scattered across headings, labels, or buttons.
- Cramped inner padding or skipped semantic heading levels (e.g., `h1` jumping straight to `h4`).
---
## Step 1 · Route by Tier & Nature (Load Specs Only When Relevant)
When the task involves specific interactive motions, gestures, AI interfaces, data visuals, or spatial surfaces, read [references/registry-index.md](./references/registry-index.md) and match the exact `id`.
**Respect the two-tier boundary — do not inject showcase flair into routine business UI:**
- **Tier 1 · Product Core (Default for Apps, SaaS, Forms, AI Chat, Mobile)**: `motion` and `mobile` layers.
- **Feedback**: `tap`, `ripple`, `long-press`, `context-menu`, `state-button`, `tooltip-group`, `cell-flash`, `voice-wave`
- **Continuity**: `accordion`, `bottom-sheet`, `pop`, `seg`, `shared-element`, `toast-stack`, `fluid-height`, `dynamic-pill`
- **Direction**: `anchor-popover`, `edge-back`, `swipe`, `sticky-title`, `scroll-fade`
- **Weight**: `pull-refresh`, `detent`, `dock`, `snap-sheet`, `rubber-band`, `magnetic`
- **Rhythm**: `number-flow`, `enter`, `count-up`, `split`, `bar-grow`, `sparkline-draw`, `ai-stream`, `scramble`
- **Tier 2 · Showcase / Spatial / Shaders (Opt-in Only — use only when explicitly requested or building a creative/marketing showcase)**:
- **Glass (`glass`)**: `glass-base`, `refraction`, `glass-tap`
- **True Z-axis 3D (`3d`)**: `depth`, `tilt`, `spotlight`, `card-deck`, `coverflow`, `book-3d`, `holo-card`, `flip-clock`, `bar-3d`, `fold`, `fan`, `ring`, `sphere`, `orbit`, `tunnel`
- **Native WebGL Shaders (`webgl`, 0 Three.js)**: `shader-aurora`, `shader-orb`, `shader-ripple`, `shader-globe`, `shader-terrain`, `shader-metaballs`, `shader-dna`, `shader-particles`, `shader-torus`
- **Playful (`fun`)**: `confetti`, `blob`, `border-run`, `bounce-text`, `cube`, `glitch`, `mgrid`
---
## Step 2 · Read Only the Matched Consumer Card
Open only the matched [references/effects/\<id\>.md](./references/effects/) file(s). Each consumer card is stripped of library boilerplate and private identifiers, giving you:
- **Core physics principle & exact constants** (e.g., `28%`, `0.55px/ms`, `480ms`, `400ms` min loading, `6px` blur)
- **Hard constraints & degradation contract** (`prefers-reduced-motion`, `pointercancel`, Safari/iOS quirks)
- **Observable acceptance criteria** and **anti-patterns to avoid**
---
## Step 3 · Zero-Hallucination Translation & Pre-Ship Check
1. Translate the baseline rules and matched spec constants natively into the project's stack (React, Vue, Tailwind, Taro, Mini Program, Flutter, SwiftUI, or vanilla CSS/JS) — never pull in heavy animation runtimes unless the project already uses them.
2. Never emit private library class or variable names from any reference repo.
3. Before finishing substantial UI work, verify against Step 0 and card acceptance criteria — or run `motion-kit lint <path>` / activate `motion-kit-review` to catch static issues objectively.
Files in this skill
- SKILL.md
- references/effects/accordion.md
- references/effects/ai-stream.md
- references/effects/anchor-popover.md
- references/effects/bar-3d.md
- references/effects/bar-grow.md
- references/effects/blob.md
- references/effects/book-3d.md
- references/effects/border-run.md
- references/effects/bottom-sheet.md
- references/effects/bounce-text.md
- references/effects/card-deck.md
- references/effects/cell-flash.md
- references/effects/confetti.md
- references/effects/context-menu.md
- references/effects/count-up.md
- references/effects/coverflow.md
- references/effects/cube.md
- references/effects/depth.md
- references/effects/detent.md
Attribution
Related skills
View all in design →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.