TheGoat395/Codex-Skills / skills/design-motion-principles
design-motion-principles
VerifiedMotion through Kowalski, Krehel and Jhey lenses.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 6.2 KB |
| agents/openai.yaml | config | 264 B |
| references/accessibility.md | markdown | 2.5 KB |
| references/anti-checklist.md | markdown | 13.4 KB |
| references/audit-checklist.md | markdown | 5.5 KB |
| references/creation-gotchas.md | markdown | 3.5 KB |
| references/demo-shell.html | other | 14.5 KB |
| references/emil-kowalski.md | markdown | 6.5 KB |
| references/jakub-krehel.md | markdown | 4.8 KB |
| references/jhey-tompkins.md | markdown | 6.1 KB |
| references/motion-cookbook.md | markdown | 18.3 KB |
| references/output-format.md | markdown | 18.0 KB |
| references/performance.md | markdown | 1.6 KB |
| references/report-template.html | other | 64.3 KB |
| workflows/audit.md | markdown | 12.7 KB |
| workflows/create.md | markdown | 4.4 KB |
references/performance.md
View on GitHub# Performance
## will-change
`will-change` is a targeted hint, not a guaranteed compositor layer. `auto` is the normal default; `all` is not a useful supported value here. Do not set hints globally. If profiling reveals first-frame preparation cost, apply `will-change: transform, opacity` shortly before the relevant interaction and remove it afterward. Persistent hints and large/many layers can consume memory. Do not use them to hide an unexplained bottleneck.
## Rendering cost
Prefer transform and opacity when they match the design; compositing depends on the browser and element. Background-position/background-size, gradient changes, filter, clip-path and masks can require paint or expensive raster work. For moving gradients, consider a transform/opacity-driven pseudo-element and compare actual traces. CSS custom properties do not bypass the rendering pipeline.
Width/height, offsets, margin/padding and font-size can trigger layout. Measured bounded size animation or layout/FLIP is valid when content flow needs it; scaling text is not an automatic substitute. Batch layout reads before writes and avoid repeated forced layout.
## Budget and checks
Use actual frame work, painted area, layer memory, route lifecycle and target device classes rather than a universal element-count limit. Check interruption, resize, route return, cleanup and reduced-motion states. A few huge filtered layers may cost more than many tiny transform elements. Record source-only advice separately from measured runtime evidence.
Primary technical references: https://web.dev/articles/animations-guide ; https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/will-change
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |