PixelPilot uiux-motion.instructions.md

Guidance for designing animations, transitions, and loading states in user interfaces. It covers when to use CSS, GSAP, or Motion and how to keep movement smooth.

In plain words
What is it for?
It supports decisions about hover effects, entrances, staggered sequences, accordions, parallax scrolling, skeleton screens, and page transitions.
Why use it?
It helps avoid slow, distracting, or jerky animations by matching the technique to the interaction and prioritising properties that are cheaper for browsers to animate.

Instructions file for GitHub Copilot

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/dev-lou/pixelpilot/uiux-motion
Clone the repo
git clone --depth 1 https://github.com/dev-lou/PixelPilot

Made for: GitHub Copilot.

Per session 5,965 This file is loaded in full into every session.
When invoked 5,965 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.05965 $0.05965
Opus 5 $0.02982 $0.02982
Sonnet 5 $0.01193 $0.01193
Haiku 4.5 $0.00596 $0.00596

Measured yesterday against content hash 67f7be8283a1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

PixelPilot uiux-motion.instructions.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

vscode/.github/instructions/uiux-motion.instructions.md · 570 lines

How it starts

The opening of the file, as written. The whole thing — 570 lines — stays where its author put it; the contents beside it link to each section on GitHub.

UI/UX Motion, Animation & Loading States 2026

Per-language animation systems, GSAP vs CSS decision rules, spring physics, kinetic typography, skeleton UX, loading states, view transitions, performance tiers.


THE GOLDEN RULE — Performance First

Only ever animate transform and opacity. These are GPU-composited — zero layout reflow, zero paint, zero jank. Everything else causes dropped frames.

S-Tier (GPU, 60fps): transform, opacity
C-Tier (use sparingly): filter, clip-path, border-radius
D-Tier (NEVER animate): width, height, top, left, padding, margin, background-color*
*background-color is fine for micro-interactions but not continuous/looping animations

DECISION TREE — CSS vs GSAP vs Motion

Need animation?
├─ Simple state (hover, focus, show/hide, toggle)?
│   └─ CSS transition — always. Zero overhead.
├─ Entrance on scroll?
│   ├─ Vanilla → AOS (in CDN) or CSS scroll-timeline
│   └─ React → Motion whileInView
├─ Complex sequence / stagger / timeline?
│   └─ GSAP timeline
├─ height:auto expand/collapse (accordion)?
│   └─ GSAP — CSS literally cannot do height:auto
├─ Scroll cinematic (parallax, pin, scrub)?
│   └─ GSAP + ScrollTrigger
├─ React page/route transition?
│   └─ View Transitions API or Motion AnimatePresence
└─ Physics spring (bouncy, drag)?
    └─ CSS spring easing or Motion (React)

PER-LANGUAGE ANIMATION SYSTEM

Token Values by Language

Token Luxury Premium Minimalist Expressive Warm Technical
--dur-micro 150ms 100ms 80ms 60ms 120ms 60ms
--dur-base 500ms 300ms 250ms 180ms 350ms 150ms
--dur-slow 900ms 600ms 500ms 300ms 700ms 250ms
Spring/bounce? Never Subtle Never Strong Medium Never
Stagger delay 120ms 60ms 80ms 40ms 80ms 20ms
Entrance travel 32px 20px 12px 16px 20px 8px
Entrance blur 0px 0px 0px 8px 0px 0px
Kinetic type? Slow reveal Subtle No Fast scramble No No

Read the full file on GitHub · 570 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 570 lines · 5,965 tokens per session scan A 67f7be8283a1

Subscribe to this mod's changes

PixelPilot uiux-motion.instructions.md is an instructions file published in the GitHub repository dev-lou/PixelPilot (2 stars, last pushed 4mo ago), licensed MIT. It adds 5,965 tokens to every session, about $0.0298 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories