design/motion-design/skills/motion-design/SKILL.md
This skill should be used when the user wants to add animations, transitions, motion, or movement to any UI. Trigger when the user mentions "add animation", "page transitions", "hover effects", "loading states", "scroll effects", "parallax", "spring animation", "shared element transitions", "gesture-driven motion", "SVG animation", "kinetic typography", or "3D depth effects". Also trigger when the user says an interface "feels static", "feels lifeless", "feels janky", "feels too abrupt", "feels slow", or wants it to "feel like Apple", "feel like iOS", "feel like Vercel", "feel like Linear", "feel smooth", or "feel polished". Use this skill whenever motion is anywhere in the conversation — motion is a design system, not a feature.
npx skillsauth add harsh040506/claude-code-unified-skill-plugin-library motion-designInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Motion is not decoration. Every animation must earn its place by doing at least one of four jobs: Orientation, Feedback, Status, or Delight. If you cannot name the job, cut the animation.
Before animating anything, identify which job the motion is doing:
A single animation can serve multiple jobs. If it serves zero, remove it.
Duration is a system, not a per-animation guess. Use these tiers consistently:
| Tier | Duration | Use Cases | |------|----------|-----------| | Micro | 80–150ms | Hovers, clicks, toggles, immediate feedback | | Standard | 200–300ms | Modal opens, panel slides, card expands, tab switches | | Emphasis | 350–500ms | Page transitions, sheet presentations, structural layout changes | | Narrative | 500–800ms | Celebrations, first-launch animations, hero reveals | | Cinematic | 800ms+ | Marketing/editorial only — never in product UI |
Duration expresses hierarchy: elements that matter more take slightly longer.
Always animate these (GPU composited, zero layout cost):
transform: translate() — positiontransform: scale() — sizetransform: rotate() — rotationopacity — transparencyfilter: blur() — blur (test on mobile)Never animate these (triggers layout recalculation or paint):
width, height, top, left, right, bottom — use transform: translate/scale() insteadmargin, padding, border-width, font-size — full layout recalcbox-shadow — use a pseudo-element with opacity insteadbackground-color — acceptable at low frequency; avoid during scrollThis is the single most important technical rule. Violating it produces jank that no design quality can recover.
| Easing | Use Case |
|--------|----------|
| ease-out cubic-bezier(0.0, 0.0, 0.58, 1.0) | Elements entering the screen — most common |
| ease-in cubic-bezier(0.42, 0.0, 1.0, 1.0) | Elements leaving — purposeful departure |
| ease-in-out cubic-bezier(0.42, 0.0, 0.58, 1.0) | Transformations that start and end on screen |
| Apple enter cubic-bezier(0.0, 0.0, 0.2, 1.0) | Fast, confident iOS-grade entry |
| Apple exit cubic-bezier(0.4, 0.0, 1.0, 1.0) | Sharp, decisive iOS-grade exit |
| Spring | Gesture responses, drag, anything velocity-driven |
| linear | Progress bars, countdowns, value scrubbing only |
Never use linear for organic motion. Never use transition: all — it animates unintended properties.
For the complete easing catalog with 30+ named curves, see references/easing-catalog.md.
Springs feel organic because they respond to velocity, not a fixed time curve. Use springs for:
Use Bezier curves for:
Framer Motion spring presets:
// iOS-like: crisp, near-zero overshoot
{ type: "spring", stiffness: 400, damping: 40 }
// Snappy utility: very fast, no overshoot
{ type: "spring", stiffness: 500, damping: 50 }
// Playful: visible bounce, expressive
{ type: "spring", stiffness: 200, damping: 15 }
// Heavy modal: weighted, authoritative
{ type: "spring", stiffness: 280, damping: 60 }
For mathematical depth on spring physics, see references/spring-physics.md.
Always combine translate + opacity. Pure opacity fades look flat.
@keyframes enterUp {
from { opacity: 0; transform: translateY(12px); }
to { opacity: 1; transform: translateY(0); }
}
/* ease-out, 220ms */
Direction must be logical: a drawer from the left enters from the left. A tooltip from a button enters toward the user's gaze from the button position.
Exits are the most neglected part of motion design. Exit toward the logical destination. Duration should be ~80% of entrance duration. Use ease-in for exits (starts slow, peels away).
When a card expands into a detail view, the card should appear to become the detail view.
// Framer Motion — same layoutId on both the card and the expanded view
<motion.div layoutId="card-1">...</motion.div>
// Web standard
document.startViewTransition(() => updateDOM());
// Apply view-transition-name to elements that should animate as shared
Every interactive element must give immediate physical feedback:
translateY(-1px) or brightness shift, 100–120ms ease-outscale(0.97) + darken, 60–80ms — must feel immediateopacity: 0.4 → 1 → 0.4, 1.5s ease-in-out infinite, with ~150ms stagger across elements/* Error shake — communicates 'wrong' at a physical level */
@keyframes errorShake {
0% { transform: translateX(0); }
15% { transform: translateX(-8px); }
30% { transform: translateX(8px); }
45% { transform: translateX(-6px); }
60% { transform: translateX(6px); }
75% { transform: translateX(-4px); }
90% { transform: translateX(4px); }
100% { transform: translateX(0); }
}
/* ~400ms total */
Color alone is never sufficient — motion, icons, and text must co-communicate errors for accessibility.
When multiple elements animate:
// GSAP timeline — overlap steps with negative offset for fluid flow
const tl = gsap.timeline({ defaults: { ease: "power2.out" } });
tl.from(".hero-headline", { y: 30, opacity: 0, duration: 0.6 })
.from(".hero-subhead", { y: 20, opacity: 0, duration: 0.5 }, "-=0.3")
.from(".hero-cta", { y: 15, opacity: 0, duration: 0.4 }, "-=0.2");
Build a motion system, not a collection of individual decisions:
:root {
/* Duration tokens */
--duration-micro: 120ms;
--duration-standard: 240ms;
--duration-emphasis: 360ms;
--duration-narrative: 600ms;
/* Easing tokens */
--ease-enter: cubic-bezier(0.0, 0.0, 0.2, 1.0);
--ease-exit: cubic-bezier(0.4, 0.0, 1.0, 1.0);
--ease-both: cubic-bezier(0.4, 0.0, 0.2, 1.0);
--ease-linear: linear;
}
The system test: can a new engineer implement a new animation without asking a designer, and have it feel consistent? If yes, there is a motion system.
| Product type | Motion character | Key parameters | |---|---|---| | Finance / Medical / Legal | Precise, restrained | Micro durations, zero overshoot | | Consumer / Social | Warm, expressive | Low-damping springs, slight bounce | | Developer Tools | Snappy, functional | Short durations, minimal easing | | Apple / iOS | Crisp springs, hardware-aware | Near-critically-damped springs | | Linear / Vercel | Fast, confident, dark | Short micro durations, clean ease-out |
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: 0.01ms !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}
In Framer Motion:
const prefersReducedMotion =
window.matchMedia("(prefers-reduced-motion: reduce)").matches;
Reduced motion ≠ no motion. Fading is fine. Instant state changes are fine. Eliminate: large spatial translations, spinning, parallax, rapid movement, and any motion creating a sense of moving through space.
For the full accessibility audit workflow, see the motion-accessibility skill.
references/easing-catalog.md — 30+ named easing curves with bezier values, use cases, and personality notesreferences/spring-physics.md — Spring equation, parameter guide, preset personalities, critical damping mathreferences/performance-engineering.md — Browser rendering pipeline, DevTools profiling, GPU-safe properties deep reference, common fixesgesture-motion-designer — Generate gesture interactions (swipe, drag, pinch) with spring physicsmicrointeraction-library — Production-ready loading, error, and feedback animation patternsframer-advanced-physics — Tune spring parameters for specific feels (iOS, bouncy, snappy)scroll-animation-builder — Scroll-triggered and scroll-linked animations with performance focustimeline-choreographer — Multi-element animation sequencing and GSAP timelinesanimation-performance-auditor — Diagnose and fix janky animationsmotion-accessibility — WCAG + prefers-reduced-motion audit and remediationtesting
Performs quality control on single-cell RNA-seq data (.h5ad or .h5 files) using scverse best practices with MAD-based filtering and comprehensive visualizations. Use when users request QC analysis, filtering low-quality cells, assessing data quality, or following scverse/scanpy best practices for single-cell analysis.
tools
Deep learning for single-cell analysis using scvi-tools. This skill should be used when users need (1) data integration and batch correction with scVI/scANVI, (2) ATAC-seq analysis with PeakVI, (3) CITE-seq multi-modal analysis with totalVI, (4) multiome RNA+ATAC analysis with MultiVI, (5) spatial transcriptomics deconvolution with DestVI, (6) label transfer and reference mapping with scANVI/scArches, (7) RNA velocity with veloVI, or (8) any deep learning-based single-cell method. Triggers include mentions of scVI, scANVI, totalVI, PeakVI, MultiVI, DestVI, veloVI, sysVI, scArches, variational autoencoder, VAE, batch correction, data integration, multi-modal, CITE-seq, multiome, reference mapping, latent space.
testing
This skill should be used when scientists need help with research problem selection, project ideation, troubleshooting stuck projects, or strategic scientific decisions. Use this skill when users ask to pitch a new research idea, work through a project problem, evaluate project risks, plan research strategy, navigate decision trees, or get help choosing what scientific problem to work on. Typical requests include "I have an idea for a project", "I'm stuck on my research", "help me evaluate this project", "what should I work on", or "I need strategic advice about my research".
development
Run nf-core bioinformatics pipelines (rnaseq, sarek, atacseq) on sequencing data. Use when analyzing RNA-seq, WGS/WES, or ATAC-seq data—either local FASTQs or public datasets from GEO/SRA. Triggers on nf-core, Nextflow, FASTQ analysis, variant calling, gene expression, differential expression, GEO reanalysis, GSE/GSM/SRR accessions, or samplesheet creation.