universal-patterns
Skill94 starsChanged 11 months agoMITView on GitHub
Use when creating any animation type - provides foundational timing, easing, and principle application that applies to all motion in interfaces.
In this repository144 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- 3d-spatialSkill
- accessible-motionSkill
- brand-marketingSkill
- data-visualizationSkill
- game-developmentSkill
- micro-interactionsSkill
- mobile-touchSkill
- page-transitionsSkill
- presentationsSkill
- universal-fallbackSkill
- video-motion-graphicsSkill
- web-motion-designSkill
- anticipation-payoffSkill
- attention-directionSkill
- character-appealSkill
- emotional-narrativeSkill
- exaggerated-claritySkill
- naturalistic-motionSkill
- physics-intuitionSkill
- problem-diagnosisSkill
- rhythm-pacingSkill
- spatial-thinkingSkill
- timing-masterySkill
- universal-mindsetSkill
- accessibility-advocateSkill
- animator-traditionalSkill
- brand-strategistSkill
- creative-directorSkill
- educator-teacherSkill
- filmmakerSkill
- frontend-developerSkill
- game-designerSkill
- motion-designerSkill
- product-managerSkill
- universal-practitionerSkill
- ux-researcherSkill
- Animation Principles - Absolute BeginnerSkill
- Animation Principles - AdvancedSkill
- Animation Principles - Deep DiveSkill
- Animation Principles - ExpertSkill
- Animation Principles - IntermediateSkill
- Animation Principles - MasterSkill
- Animation Principles - NoviceSkill
- Animation Principles - Quick StartSkill
- Animation Principles - RefresherSkill
- Animation Principles - Teaching OthersSkill
- Animation Principles - TroubleshootingSkill
- Animation Principles - Universal ReferenceSkill
- attention-grabbersSkill
- continuous-loopsSkill
- entrance-animationsSkill
- exit-animationsSkill
- feedback-indicatorsSkill
- gesture-responsesSkill
- hover-interactionsSkill
- loading-statesSkill
- scroll-animationsSkill
- state-changesSkill
- transition-sequencesSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 42
Slow In/Slow Out: Always ease, never linear (except spinners)
- Very specific: line 83
Reduce Motion: Always provide prefers-reduced-motion alternative
- Very specific: line 84
GPU Properties: Use only transform and opacity for smooth 60fps
- Very specific: line 107
When uncertain, start with: 250ms cubic-bezier(0.4, 0, 0.2, 1)
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Universal Animation Patterns
Apply Disney's 12 principles as baseline defaults for any animation.
Core Timing Scale
| Category | Duration | Use For |
| Instant | 100-150ms | Hovers, toggles, micro-states |
| Fast | 150-250ms | Feedback, small transitions |
| Standard | 250-400ms | Modals, reveals, state changes |
| Slow | 400-600ms | Page transitions, sequences |
| Deliberate | 600-1000ms | Dramatic reveals, celebrations |
Universal Easing Library
:root {
/* Standard easings */
--ease-out: cubic-bezier(0, 0, 0.2, 1); /* Entrances */
--ease-in: cubic-bezier(0.4, 0, 1, 1); /* Exits */
--ease-in-out: cubic-bezier(0.4, 0, 0.2, 1); /* State changes */
/* Spring easings */
--ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1); /* Overshoot */
--ease-bounce: cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Playful */
}The 12 Principles Quick Reference
- Squash & Stretch: Scale 0.95-1.05 range for organic feel
- Anticipation: 2-3px reverse movement or 50ms pause before action
- Staging: Animate toward user attention, clear visual hierarchy
- Straight Ahead vs Pose-to-Pose: Define keyframes, plan states
- Follow Through: Overshoot by 2-5%, settle back
- Slow In/Slow Out: Always ease, never linear (except spinners)
- Arcs: Combine X+Y movement, natural paths
- Secondary Action: Layer 2-3 properties max (opacity + transform + shadow)
- Timing: Match duration to distance/importance
- Exaggeration: Subtle for UI (under 10% deviation)
- Solid Drawing: Maintain visual consistency during motion
- Appeal: Motion should feel helpful, not performative
Base Animation Classes
/* Standard entrance */
.animate-in {
animation: fade-in 250ms var(--ease-out) forwards;
}
/* Standard exit */
.animate-out {
animation: fade-out 200ms var(--ease-in) forwards;
}
/* State transition */
.animate-state {
transition: all 200ms var(--ease-in-out);
}
@keyframes fade-in {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-out {
from { opacity: 1; transform: translateY(0); }
to { opacity: 0; transform: translateY(-10px); }
}Universal Rules
- 100ms Response Time: User actions must trigger visible change within 100ms
- Under 400ms for UI: Functional animations shouldn't exceed 400ms
- Reduce Motion: Always provide
prefers-reduced-motionalternative - GPU Properties: Use only
transformandopacityfor smooth 60fps - Exit < Enter: Exits 20-30% faster than entrances
Accessibility Default
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}Decision Tree
- Is element entering? → Use ease-out, 200-300ms
- Is element exiting? → Use ease-in, 150-250ms
- Is element changing state? → Use ease-in-out, 150-250ms
- Is it continuous? → Use linear (rotation) or ease-in-out (pulse)
- Is it responding to gesture? → Use ease-out with overshoot, under 200ms
When uncertain, start with: 250ms cubic-bezier(0.4, 0, 0.2, 1)
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
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.

