Skip to content

TheGoat395/Codex-Skills / skills/design-motion-principles

design-motion-principles

Verified

Motion through Kowalski, Krehel and Jhey lenses.

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
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: 322kUpdated Claude CodeCodexVerifiedInstall
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 198kUpdated Claude CodeCodexVerifiedInstall