agentleFS
VectorLabAUVectorLabAU/skills/skills/animation/transitions/SKILL.md

transitions

Skill1 starsChanged 59 days agoMITView on GitHub

Enter/exit patterns for overlays and lists without layout jump. Use when animating drawers, dialogs, popovers, route changes, or staggered lists.

5 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If .ux-profile.md exists at the project root, read it before changing overlay or list motion.

    line 11
  2. Distinctive:

    Prefer animating the overlay panel, not the entire page backdrop blur radius.

    line 27

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

If .ux-profile.md exists at the project root, read it before changing overlay or list motion. Pair with surfaces for which surface type to use, and motion for duration/easing tokens.

Intent

Enter and exit should reinforce the surface model: slide-overs slide, popovers fade/scale lightly, routes swap without fighting focus. Motion must never steal Escape, trap focus incorrectly, or shove surrounding layout.

Hard Rules (Non-Negotiable)

  • Overlay enter/exit matches surfaces: slide-over uses horizontal translate; popover uses opacity (± slight scale ≤1.02); full-page routes do not fake a modal slide unless the surface skill chose a drawer.
  • Esc and focus stay available during motion. Exit animation can cancel; never block Escape until the animation finishes. Focus trap rules from keyboard still apply while the overlay is open.
  • List stagger ≤30ms per item, total stagger budget ≈200ms. Longer cascades feel theatrical and slow.
  • Reserve space so open/close does not shift siblings (fixed drawer width, absolute overlay, or reserved inline-edit height). Zero layout jump — same spirit as inline edit in surfaces.

Design Heuristics & Taste Principles

  • Exit slightly faster than enter (e.g. enter 200ms, exit 150ms).
  • Prefer animating the overlay panel, not the entire page backdrop blur radius.
  • Backdrop opacity may fade in 150–200ms; keep backdrop static in reduced motion.
  • Stagger only when it clarifies grouping (new list batch); never stagger every keystroke filter update.
  • Coordinate with loaders: do not run a dramatic enter on a skeleton that will immediately swap.

See reference/enter-exit.md for surface-specific patterns.

Concrete Scenarios (Before vs. After)

❌ Anti-Pattern

Opening a slide-over expands document height and pushes the list down. List items cascade in over 80ms × 40 rows (~3s). Escape is ignored until the 500ms close animation completes.

✅ Best Practice

Slide-over is position: fixed with translateX enter/exit. Esc closes immediately (exit may continue visually). A 12-row list uses ≤30ms stagger with a 200ms total cap — or no stagger for filter updates.

Framework-Agnostic Implementation Blueprint

.slide-over {
  position: fixed;
  inset-block: 0;
  inset-inline-end: 0;
  width: min(420px, 100vw);
  transform: translateX(100%);
  opacity: 0;
  transition:
    transform var(--motion-200) var(--ease-out),
    opacity var(--motion-200) var(--ease-out);
}

.slide-over[data-open="true"] {
  transform: translateX(0);
  opacity: 1;
}

.list-item {
  transition: opacity var(--motion-150) var(--ease-out);
}
/* stagger via --i * 30ms, clamp total ≤200ms — see enter-exit.md */

Agent Checklist

  • Confirm surface type with surfaces before choosing enter/exit.
  • Overlay is fixed/absolute so siblings do not reflow.
  • Esc works during enter/exit; focus restore still happens on close.
  • Stagger ≤30ms/item and ≤~200ms total (or none).
  • Durations/easing match motion tokens.
  • Review patterns in reference/enter-exit.md.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.