page-motion
Use when asked to "add a transition", "make this animate", or "why does this jump", for web interfaces, including CSS transitions and keyframes, `linear()`…
от realness-online★ 20 звёзд на GitHub
Установить page-motion в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
CSS Motion Systems
Production-oriented motion for web UI - interaction clarity, performance, and accessibility, not decoration. Skip motion entirely when it adds cognitive load or delays a state update that must feel instant.
Motion Goals
Each proposal should satisfy at least one of these goals:
- Continuity - where things came from and where they go
- Feedback - action acknowledged with clear response
- Hierarchy - what changed most and why
- Focus Guidance - attention moves to the right target
Mechanism Selection
Choose the lightest mechanism that satisfies the interaction:
- CSS transition - state changes on a single element/component (hover, open/close, selected state)
- CSS keyframes - multi-stage timeline or repeated motion (loading, attention pulse, choreography)
- WAAPI - imperative sequencing, playback control, cancel/reverse sync with logic
- View Transitions API - continuity across DOM swaps, route changes, or layout mode changes
Transform Strategy
translate: / rotate: / scale: (individual properties)
Use individual transform properties when:
- You want composable state layers (base styles + state overrides)
- Different interactions control different transform channels
- You need clearer design-token mapping and maintainability
transform: shorthand
Use shorthand when:
- Transform order is intentionally coupled
- You combine multiple functions in one declaration and must preserve exact sequence
- You need functions not exposed as individual props in your target browser strategy
translate3d() and 3D transforms
Use translate3d() only when:
- You need actual 3D/perspective behavior
- You have profiled a measurable compositor benefit in a real bottleneck
Avoid using translate3d() as a blanket "GPU hack". It can increase layer memory and produce jank if overused.
Easing System (Including linear())
Default guidance
- Use
cubic-bezier()for most product interactions - Use
linear()for piecewise velocity control and custom motion signatures - Tokenize easing values and reuse consistently
Where linear() shines
- Spring-like settle without JS spring physics
- Controlled overshoot/settle curves
- Brand motion signatures with explicit velocity shaping
Keep point counts intentional (typically 4-8 points). Prefer readable named tokens over ad-hoc per-component values.
linear() examples by intent
Name curves by intent (--ease-linear-enter-soft, --ease-linear-exit-crisp,
--ease-linear-settle-gentle, --ease-linear-emphasis-pop) and reuse the token
in every transition that shares that intent. Token values and usage are in the
reference below.
See: references/LINEAR_EASING_PATTERNS.md
View Transitions API (Deep Use)
Same-document transitions
- Wrap the DOM/state update in
document.startViewTransition(() => update()) - Name only meaningful shared elements with
view-transition-name - Style transition pseudo-elements intentionally
Cross-document transitions
- Opt in with
@view-transition { navigation: auto; } - Keep shared element naming consistent across pages
- Ensure entry/exit states remain meaningful when transition is unavailable
Key pseudo-elements
::view-transition-old(root)/::view-transition-new(root)::view-transition-old(name)/::view-transition-new(name)::view-transition-group(name)
Failure and fallback behavior
- Feature-detect and fall back to standard state updates
- Respect reduced motion by removing spatial travel and keeping clear state change
- Never block core interactions while waiting for transition effects
See: references/VIEW_TRANSITION_RECIPES.md
Performance Rules
- Prefer animating
transformandopacity - Avoid animating layout-affecting props for core interactions (
top,left,width,height) - Minimize long-running infinite animations on large surfaces
- Use
will-changesparingly and remove when not needed - Profile before and after changes (frame stability, long tasks, layer count)
Accessibility Rules
- Support
@media (prefers-reduced-motion: reduce) - Replace big travel/zoom with fade or instant state change when reduced motion is requested
- Keep feedback timing responsive; avoid long delays before state confirmation
- Ensure focus order, focus visibility, and keyboard behavior remain correct during/after transitions
Timing Heuristics
- Micro interactions:
120-180ms - Component transitions:
180-260ms - Structural/layout/route transitions:
240-420ms - Exits generally faster than enters
Interaction Design Heuristics
- Use motion to explain state change, not decorate it
- Stagger only when it improves scannability or hierarchy
- Keep directional logic consistent with layout flow
- Prefer fewer, coherent motion patterns over many unique effects
Output Contract
When using this skill, p
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- motion-choreography-patterns/SKILL.md
- motion-choreography-patterns/references/CHOREOGRAPHY_PATTERNS.md
- motion-choreography-patterns/references/INTERACTION_SCENARIOS.md
- motion-choreography-patterns/references/QA_STORYBOARD_CHECKLIST.md
- motion-choreography-patterns/references/STAGGER_SYSTEMS.css
- references/LINEAR_EASING_PATTERNS.md
- references/MOTION_REVIEW_CHECKLIST.md
- references/MOTION_TOKENS.css
- references/VIEW_TRANSITION_RECIPES.md
FAQ
Что делает скилл page-motion?
Use when asked to "add a transition", "make this animate", or "why does this jump", for web interfaces, including CSS transitions and keyframes, `linear()` easing design, transform strategy (`translate`/`rotate` vs `transform`/`translate3d()`), and deep View Transitions API patterns for route and state continuity.
Как установить скилл page-motion?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл page-motion запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…