Style

Motion and animation

Adds smooth, safe motion - transitions and keyframes on transform and opacity, prefers-reduced-motion, pause controls for auto-playing content, View Transitions and scroll-driven animations with feature checks, @starting-style for entry effects, and motion libraries set for reduced motion. Use when animating UI, adding page transitions, parallax or a carousel, or when an animation stutters.

fe-motionkażdego projektu webowego4 regułyładowane zawsze: 79 tokenów; przy użyciu: 838 tokenów; w referencjach na żądanie: 1432 tokeny.

Instalacja

init instaluje ten skill, gdy projekt używa: każdego projektu webowego. Wybierz agenta, aby zobaczyć, gdzie trafią jego pliki.

Agent
npx github:dawidolko/frontend-skills init

Bez --agents polecenie init rozpoznaje agentów po tym, co projekt już ma, a gdy nie znajdzie żadnego, pyta:

Po czym init rozpoznaje każdego z agentów (17)
AgentRozpoznawany po
Claude CodeCLAUDE.md .claude CLAUDE.local.md
OpenAI Codex.codex AGENTS.override.md
Cursor.cursor .cursorrules
GitHub Copilot.github/copilot-instructions.md .github/instructions .github/skills .github/prompts
Gemini CLIGEMINI.md .gemini
Antigravity CLI.agents/rules .agent/rules
Devin / Windsurf.devin .windsurf .windsurfrules
OpenCodeopencode.json opencode.jsonc .opencode
Cline.clinerules .cline
Zed.rules .zed
JetBrains Junie.junie
Kiro.kiro
Augment.augment .augment-guidelines
Trae.trae
Continue.continue
Amazon Q Developer.amazonq
Aider.aider.conf.yml CONVENTIONS.md

Gdzie trafia fe-motion dla: Claude Code

  • .claude/skills/fe-motion/SKILL.mdskill
  • .claude/skills/fe-motion/references/motion.mdskill
  • .claude/rules/fe-motion.mdplik reguł
  • CLAUDE.mdblok instrukcji

Dla każdego agenta także: .frontend-skills/profile.json, .frontend-skills/lessons.md i .frontend-skills/install.json.

Zaplanowane przez sam instalator dla przykładowego projektu React z repozytorium.

.claude/rules/fe-motion.md
---
paths:
  - "**/*.css"
  - "**/*.scss"
  - "**/*.less"
  - "**/*.jsx"
  - "**/*.tsx"
  - "**/*.vue"
  - "**/*.svelte"
  - "**/*.astro"
---

# Motion and animation (frontend-skills)

Adds smooth, safe motion - transitions and keyframes on transform and opacity, prefers-reduced-motion, pause controls for auto-playing content, View Transitions and scroll-driven animations with feature checks, @starting-style for entry effects, and motion libraries set for reduced motion. Use when animating UI, adding page transitions, parallax or a carousel, or when an animation stutters.

- Animate `transform` (`translate`, `scale`, `rotate`) and `opacity`, never `width`, `height`, `top`, `left` or `margin` (css/animate-composited).
- Non-essential motion runs only under `@media (prefers-reduced-motion: no-preference)` or is toned down under `reduce` (css/reduced-motion).
- Anything that moves on its own for more than five seconds has a pause control and stops on focus and hover (css/pause-auto-motion).
- Scroll-driven animations and anchor-positioned effects sit in `@supports` with a still fallback (css/limited-needs-supports).
- Call `document.startViewTransition` only after checking it exists; cross-document view transitions are an enhancement.
- Keep UI transitions short (about 150–300 ms) and purposeful; never animate for its own sake.
- Entry effects use `@starting-style`, exit effects `transition-behavior: allow-discrete`, not timers.
- `will-change` only to fix a measured problem, never on many elements.
- Animation libraries follow the user setting (Motion `MotionConfig reducedMotion="user"`, `useReducedMotion`).
- No flashing more than three times per second.

Before larger changes, read the full skill: `.claude/skills/fe-motion/SKILL.md`. Explain any rule id with `npx github:dawidolko/frontend-skills explain <id>`.
Prawdziwy plik

Gdzie trafia fe-motion dla: OpenAI Codex

  • .agents/skills/fe-motion/SKILL.mdskill
  • .agents/skills/fe-motion/references/motion.mdskill
  • AGENTS.mdblok instrukcji

Dla każdego agenta także: .frontend-skills/profile.json, .frontend-skills/lessons.md i .frontend-skills/install.json.

OpenAI Codex nie ma plików reguł zawężonych do typów plików; czyta skille i blok instrukcji.

Zaplanowane przez sam instalator dla przykładowego projektu React z repozytorium.

AGENTS.md
## Front-end work (frontend-skills)

- Before front-end work, read `.frontend-skills/profile.json` (the stack) and `.frontend-skills/lessons.md` (confirmed conventions of this project; they win over any skill).
- Use the installed `fe-*` skill that matches the files you edit.
- After changing UI code, run `npx github:dawidolko/frontend-skills audit --changed --json` and fix findings at `serious` and above; `explain <rule id>` gives the reason, the source and the fix.
- Name rule ids (such as `a11y/img-alt`) in reviews and commit messages.
Prawdziwy plik

Gdzie trafia fe-motion dla: Cursor

  • .agents/skills/fe-motion/SKILL.mdskill
  • .agents/skills/fe-motion/references/motion.mdskill
  • .cursor/rules/fe-motion.mdcplik reguł
  • AGENTS.mdblok instrukcji

Dla każdego agenta także: .frontend-skills/profile.json, .frontend-skills/lessons.md i .frontend-skills/install.json.

Zaplanowane przez sam instalator dla przykładowego projektu React z repozytorium.

.cursor/rules/fe-motion.mdc
---
description: Adds smooth, safe motion - transitions and keyframes on transform and opacity, prefers-reduced-motion, pause controls for auto-playing content, View Transitions and scroll-driven animations with feature checks, @starting-style for entry effects, and motion libraries set for reduced motion. Use when animating UI, adding page transitions, parallax or a carousel, or when an animation stutters.
globs: **/*.css, **/*.scss, **/*.less, **/*.jsx, **/*.tsx, **/*.vue, **/*.svelte, **/*.astro
alwaysApply: false
---

# Motion and animation (frontend-skills)

- Animate `transform` (`translate`, `scale`, `rotate`) and `opacity`, never `width`, `height`, `top`, `left` or `margin` (css/animate-composited).
- Non-essential motion runs only under `@media (prefers-reduced-motion: no-preference)` or is toned down under `reduce` (css/reduced-motion).
- Anything that moves on its own for more than five seconds has a pause control and stops on focus and hover (css/pause-auto-motion).
- Scroll-driven animations and anchor-positioned effects sit in `@supports` with a still fallback (css/limited-needs-supports).
- Call `document.startViewTransition` only after checking it exists; cross-document view transitions are an enhancement.
- Keep UI transitions short (about 150–300 ms) and purposeful; never animate for its own sake.
- Entry effects use `@starting-style`, exit effects `transition-behavior: allow-discrete`, not timers.
- `will-change` only to fix a measured problem, never on many elements.
- Animation libraries follow the user setting (Motion `MotionConfig reducedMotion="user"`, `useReducedMotion`).
- No flashing more than three times per second.

Before larger changes, read the full skill: `.agents/skills/fe-motion/SKILL.md`. Explain any rule id with `npx github:dawidolko/frontend-skills explain <id>`.
Prawdziwy plik

Gdzie trafia fe-motion dla: GitHub Copilot

  • .agents/skills/fe-motion/SKILL.mdskill
  • .agents/skills/fe-motion/references/motion.mdskill
  • .github/instructions/fe-motion.instructions.mdplik reguł
  • AGENTS.mdblok instrukcji

Dla każdego agenta także: .frontend-skills/profile.json, .frontend-skills/lessons.md i .frontend-skills/install.json.

Zaplanowane przez sam instalator dla przykładowego projektu React z repozytorium.

.github/instructions/fe-motion.instructions.md
---
applyTo: "**/*.css,**/*.scss,**/*.less,**/*.jsx,**/*.tsx,**/*.vue,**/*.svelte,**/*.astro"
description: "Adds smooth, safe motion - transitions and keyframes on transform and opacity, prefers-reduced-motion, pause controls for auto-playing content, View Transitions and scroll-driven animations with feature checks, @starting-style for entry effects, and motion libraries set for reduced motion. Use when animating UI, adding page transitions, parallax or a carousel, or when an animation stutters."
---

# Motion and animation (frontend-skills)

- Animate `transform` (`translate`, `scale`, `rotate`) and `opacity`, never `width`, `height`, `top`, `left` or `margin` (css/animate-composited).
- Non-essential motion runs only under `@media (prefers-reduced-motion: no-preference)` or is toned down under `reduce` (css/reduced-motion).
- Anything that moves on its own for more than five seconds has a pause control and stops on focus and hover (css/pause-auto-motion).
- Scroll-driven animations and anchor-positioned effects sit in `@supports` with a still fallback (css/limited-needs-supports).
- Call `document.startViewTransition` only after checking it exists; cross-document view transitions are an enhancement.
- Keep UI transitions short (about 150–300 ms) and purposeful; never animate for its own sake.
- Entry effects use `@starting-style`, exit effects `transition-behavior: allow-discrete`, not timers.
- `will-change` only to fix a measured problem, never on many elements.
- Animation libraries follow the user setting (Motion `MotionConfig reducedMotion="user"`, `useReducedMotion`).
- No flashing more than three times per second.

Before larger changes, read the full skill: `.agents/skills/fe-motion/SKILL.md`. Explain any rule id with `npx github:dawidolko/frontend-skills explain <id>`.
Prawdziwy plik

Gdzie trafia fe-motion dla: Gemini CLI

  • .agents/skills/fe-motion/SKILL.mdskill
  • .agents/skills/fe-motion/references/motion.mdskill
  • GEMINI.mdblok instrukcji

Dla każdego agenta także: .frontend-skills/profile.json, .frontend-skills/lessons.md i .frontend-skills/install.json.

Gemini CLI: Gemini CLI was replaced by Antigravity CLI for unpaid tiers on 2026-06-18; choose "antigravity" too if you use it.

Gemini CLI nie ma plików reguł zawężonych do typów plików; czyta skille i blok instrukcji.

Zaplanowane przez sam instalator dla przykładowego projektu React z repozytorium.

GEMINI.md
## Front-end work (frontend-skills)

- Before front-end work, read `.frontend-skills/profile.json` (the stack) and `.frontend-skills/lessons.md` (confirmed conventions of this project; they win over any skill).
- Use the installed `fe-*` skill that matches the files you edit.
- After changing UI code, run `npx github:dawidolko/frontend-skills audit --changed --json` and fix findings at `serious` and above; `explain <rule id>` gives the reason, the source and the fix.
- Name rule ids (such as `a11y/img-alt`) in reviews and commit messages.
Prawdziwy plik

Gdzie trafia fe-motion dla: Antigravity CLI

  • .agents/skills/fe-motion/SKILL.mdskill
  • .agents/skills/fe-motion/references/motion.mdskill
  • .agents/rules/fe-motion.mdplik reguł
  • AGENTS.mdblok instrukcji

Dla każdego agenta także: .frontend-skills/profile.json, .frontend-skills/lessons.md i .frontend-skills/install.json.

Zaplanowane przez sam instalator dla przykładowego projektu React z repozytorium.

.agents/rules/fe-motion.md
---
trigger: glob
globs: "**/*.css, **/*.scss, **/*.less, **/*.jsx, **/*.tsx, **/*.vue, **/*.svelte, **/*.astro"
description: "Adds smooth, safe motion - transitions and keyframes on transform and opacity, prefers-reduced-motion, pause controls for auto-playing content, View Transitions and scroll-driven animations with feature checks, @starting-style for entry effects, and motion libraries set for reduced motion. Use when animating UI, adding page transitions, parallax or a carousel, or when an animation stutters."
---

# Motion and animation (frontend-skills)

- Animate `transform` (`translate`, `scale`, `rotate`) and `opacity`, never `width`, `height`, `top`, `left` or `margin` (css/animate-composited).
- Non-essential motion runs only under `@media (prefers-reduced-motion: no-preference)` or is toned down under `reduce` (css/reduced-motion).
- Anything that moves on its own for more than five seconds has a pause control and stops on focus and hover (css/pause-auto-motion).
- Scroll-driven animations and anchor-positioned effects sit in `@supports` with a still fallback (css/limited-needs-supports).
- Call `document.startViewTransition` only after checking it exists; cross-document view transitions are an enhancement.
- Keep UI transitions short (about 150–300 ms) and purposeful; never animate for its own sake.
- Entry effects use `@starting-style`, exit effects `transition-behavior: allow-discrete`, not timers.
- `will-change` only to fix a measured problem, never on many elements.
- Animation libraries follow the user setting (Motion `MotionConfig reducedMotion="user"`, `useReducedMotion`).
- No flashing more than three times per second.

Before larger changes, read the full skill: `.agents/skills/fe-motion/SKILL.md`. Explain any rule id with `npx github:dawidolko/frontend-skills explain <id>`.
Prawdziwy plik

Gdzie trafia fe-motion dla: Devin / Windsurf

  • .agents/skills/fe-motion/SKILL.mdskill
  • .agents/skills/fe-motion/references/motion.mdskill
  • .devin/rules/fe-motion.mdplik reguł
  • AGENTS.mdblok instrukcji

Dla każdego agenta także: .frontend-skills/profile.json, .frontend-skills/lessons.md i .frontend-skills/install.json.

Devin / Windsurf: Devin CLI also reads .cursor/rules; with Cursor chosen too, the CLI sees both rule files of a skill.

Zaplanowane przez sam instalator dla przykładowego projektu React z repozytorium.

.devin/rules/fe-motion.md
---
trigger: glob
globs: "**/*.css,**/*.scss,**/*.less,**/*.jsx,**/*.tsx,**/*.vue,**/*.svelte,**/*.astro"
---

# Motion and animation (frontend-skills)

Adds smooth, safe motion - transitions and keyframes on transform and opacity, prefers-reduced-motion, pause controls for auto-playing content, View Transitions and scroll-driven animations with feature checks, @starting-style for entry effects, and motion libraries set for reduced motion. Use when animating UI, adding page transitions, parallax or a carousel, or when an animation stutters.

- Animate `transform` (`translate`, `scale`, `rotate`) and `opacity`, never `width`, `height`, `top`, `left` or `margin` (css/animate-composited).
- Non-essential motion runs only under `@media (prefers-reduced-motion: no-preference)` or is toned down under `reduce` (css/reduced-motion).
- Anything that moves on its own for more than five seconds has a pause control and stops on focus and hover (css/pause-auto-motion).
- Scroll-driven animations and anchor-positioned effects sit in `@supports` with a still fallback (css/limited-needs-supports).
- Call `document.startViewTransition` only after checking it exists; cross-document view transitions are an enhancement.
- Keep UI transitions short (about 150–300 ms) and purposeful; never animate for its own sake.
- Entry effects use `@starting-style`, exit effects `transition-behavior: allow-discrete`, not timers.
- `will-change` only to fix a measured problem, never on many elements.
- Animation libraries follow the user setting (Motion `MotionConfig reducedMotion="user"`, `useReducedMotion`).
- No flashing more than three times per second.

Before larger changes, read the full skill: `.agents/skills/fe-motion/SKILL.md`. Explain any rule id with `npx github:dawidolko/frontend-skills explain <id>`.
Prawdziwy plik

Gdzie trafia fe-motion dla: OpenCode

  • .agents/skills/fe-motion/SKILL.mdskill
  • .agents/skills/fe-motion/references/motion.mdskill
  • AGENTS.mdblok instrukcji

Dla każdego agenta także: .frontend-skills/profile.json, .frontend-skills/lessons.md i .frontend-skills/install.json.

OpenCode nie ma plików reguł zawężonych do typów plików; czyta skille i blok instrukcji.

Zaplanowane przez sam instalator dla przykładowego projektu React z repozytorium.

AGENTS.md
## Front-end work (frontend-skills)

- Before front-end work, read `.frontend-skills/profile.json` (the stack) and `.frontend-skills/lessons.md` (confirmed conventions of this project; they win over any skill).
- Use the installed `fe-*` skill that matches the files you edit.
- After changing UI code, run `npx github:dawidolko/frontend-skills audit --changed --json` and fix findings at `serious` and above; `explain <rule id>` gives the reason, the source and the fix.
- Name rule ids (such as `a11y/img-alt`) in reviews and commit messages.
Prawdziwy plik

Gdzie trafia fe-motion dla: Cline

  • .claude/skills/fe-motion/SKILL.mdskill
  • .claude/skills/fe-motion/references/motion.mdskill
  • .clinerules/fe-motion.mdplik reguł
  • AGENTS.mdblok instrukcji

Dla każdego agenta także: .frontend-skills/profile.json, .frontend-skills/lessons.md i .frontend-skills/install.json.

Cline: If .clinerules is a single file rather than a folder, Cline rule files are not written; skills still are.

Zaplanowane przez sam instalator dla przykładowego projektu React z repozytorium.

.clinerules/fe-motion.md
---
paths:
  - "**/*.css"
  - "**/*.scss"
  - "**/*.less"
  - "**/*.jsx"
  - "**/*.tsx"
  - "**/*.vue"
  - "**/*.svelte"
  - "**/*.astro"
---

# Motion and animation (frontend-skills)

Adds smooth, safe motion - transitions and keyframes on transform and opacity, prefers-reduced-motion, pause controls for auto-playing content, View Transitions and scroll-driven animations with feature checks, @starting-style for entry effects, and motion libraries set for reduced motion. Use when animating UI, adding page transitions, parallax or a carousel, or when an animation stutters.

- Animate `transform` (`translate`, `scale`, `rotate`) and `opacity`, never `width`, `height`, `top`, `left` or `margin` (css/animate-composited).
- Non-essential motion runs only under `@media (prefers-reduced-motion: no-preference)` or is toned down under `reduce` (css/reduced-motion).
- Anything that moves on its own for more than five seconds has a pause control and stops on focus and hover (css/pause-auto-motion).
- Scroll-driven animations and anchor-positioned effects sit in `@supports` with a still fallback (css/limited-needs-supports).
- Call `document.startViewTransition` only after checking it exists; cross-document view transitions are an enhancement.
- Keep UI transitions short (about 150–300 ms) and purposeful; never animate for its own sake.
- Entry effects use `@starting-style`, exit effects `transition-behavior: allow-discrete`, not timers.
- `will-change` only to fix a measured problem, never on many elements.
- Animation libraries follow the user setting (Motion `MotionConfig reducedMotion="user"`, `useReducedMotion`).
- No flashing more than three times per second.

Before larger changes, read the full skill: `.claude/skills/fe-motion/SKILL.md`. Explain any rule id with `npx github:dawidolko/frontend-skills explain <id>`.
Prawdziwy plik

Gdzie trafia fe-motion dla: Zed

  • .agents/skills/fe-motion/SKILL.mdskill
  • .agents/skills/fe-motion/references/motion.mdskill
  • CLAUDE.mdblok instrukcji

Dla każdego agenta także: .frontend-skills/profile.json, .frontend-skills/lessons.md i .frontend-skills/install.json.

Zed: Zed reads only the first instruction file of its list; the block is placed in that file.

Zed nie ma plików reguł zawężonych do typów plików; czyta skille i blok instrukcji.

Zaplanowane przez sam instalator dla przykładowego projektu React z repozytorium.

CLAUDE.md
## Front-end work (frontend-skills)

- Before front-end work, read `.frontend-skills/profile.json` (the stack) and `.frontend-skills/lessons.md` (confirmed conventions of this project; they win over any skill).
- Use the installed `fe-*` skill that matches the files you edit.
- After changing UI code, run `npx github:dawidolko/frontend-skills audit --changed --json` and fix findings at `serious` and above; `explain <rule id>` gives the reason, the source and the fix.
- Name rule ids (such as `a11y/img-alt`) in reviews and commit messages.
Prawdziwy plik

Gdzie trafia fe-motion dla: JetBrains Junie

  • .agents/skills/fe-motion/SKILL.mdskill
  • .agents/skills/fe-motion/references/motion.mdskill
  • AGENTS.mdblok instrukcji

Dla każdego agenta także: .frontend-skills/profile.json, .frontend-skills/lessons.md i .frontend-skills/install.json.

JetBrains Junie: Junie reads .agents/skills only in a trusted project.

JetBrains Junie nie ma plików reguł zawężonych do typów plików; czyta skille i blok instrukcji.

Zaplanowane przez sam instalator dla przykładowego projektu React z repozytorium.

AGENTS.md
## Front-end work (frontend-skills)

- Before front-end work, read `.frontend-skills/profile.json` (the stack) and `.frontend-skills/lessons.md` (confirmed conventions of this project; they win over any skill).
- Use the installed `fe-*` skill that matches the files you edit.
- After changing UI code, run `npx github:dawidolko/frontend-skills audit --changed --json` and fix findings at `serious` and above; `explain <rule id>` gives the reason, the source and the fix.
- Name rule ids (such as `a11y/img-alt`) in reviews and commit messages.
Prawdziwy plik

Gdzie trafia fe-motion dla: Kiro

  • .kiro/skills/fe-motion/SKILL.mdskill
  • .kiro/skills/fe-motion/references/motion.mdskill
  • .kiro/steering/fe-motion.mdplik reguł
  • AGENTS.mdblok instrukcji

Dla każdego agenta także: .frontend-skills/profile.json, .frontend-skills/lessons.md i .frontend-skills/install.json.

Zaplanowane przez sam instalator dla przykładowego projektu React z repozytorium.

.kiro/steering/fe-motion.md
---
inclusion: fileMatch
fileMatchPattern: ["**/*.css", "**/*.scss", "**/*.less", "**/*.jsx", "**/*.tsx", "**/*.vue", "**/*.svelte", "**/*.astro"]
---

# Motion and animation (frontend-skills)

Adds smooth, safe motion - transitions and keyframes on transform and opacity, prefers-reduced-motion, pause controls for auto-playing content, View Transitions and scroll-driven animations with feature checks, @starting-style for entry effects, and motion libraries set for reduced motion. Use when animating UI, adding page transitions, parallax or a carousel, or when an animation stutters.

- Animate `transform` (`translate`, `scale`, `rotate`) and `opacity`, never `width`, `height`, `top`, `left` or `margin` (css/animate-composited).
- Non-essential motion runs only under `@media (prefers-reduced-motion: no-preference)` or is toned down under `reduce` (css/reduced-motion).
- Anything that moves on its own for more than five seconds has a pause control and stops on focus and hover (css/pause-auto-motion).
- Scroll-driven animations and anchor-positioned effects sit in `@supports` with a still fallback (css/limited-needs-supports).
- Call `document.startViewTransition` only after checking it exists; cross-document view transitions are an enhancement.
- Keep UI transitions short (about 150–300 ms) and purposeful; never animate for its own sake.
- Entry effects use `@starting-style`, exit effects `transition-behavior: allow-discrete`, not timers.
- `will-change` only to fix a measured problem, never on many elements.
- Animation libraries follow the user setting (Motion `MotionConfig reducedMotion="user"`, `useReducedMotion`).
- No flashing more than three times per second.

Before larger changes, read the full skill: `.kiro/skills/fe-motion/SKILL.md`. Explain any rule id with `npx github:dawidolko/frontend-skills explain <id>`.
Prawdziwy plik

Gdzie trafia fe-motion dla: Augment

  • .agents/skills/fe-motion/SKILL.mdskill
  • .agents/skills/fe-motion/references/motion.mdskill
  • AGENTS.mdblok instrukcji

Dla każdego agenta także: .frontend-skills/profile.json, .frontend-skills/lessons.md i .frontend-skills/install.json.

Augment nie ma plików reguł zawężonych do typów plików; czyta skille i blok instrukcji.

Zaplanowane przez sam instalator dla przykładowego projektu React z repozytorium.

AGENTS.md
## Front-end work (frontend-skills)

- Before front-end work, read `.frontend-skills/profile.json` (the stack) and `.frontend-skills/lessons.md` (confirmed conventions of this project; they win over any skill).
- Use the installed `fe-*` skill that matches the files you edit.
- After changing UI code, run `npx github:dawidolko/frontend-skills audit --changed --json` and fix findings at `serious` and above; `explain <rule id>` gives the reason, the source and the fix.
- Name rule ids (such as `a11y/img-alt`) in reviews and commit messages.
Prawdziwy plik

Gdzie trafia fe-motion dla: Trae

  • .trae/skills/fe-motion/SKILL.mdskill
  • .trae/skills/fe-motion/references/motion.mdskill
  • .trae/rules/fe-motion.mdplik reguł
  • AGENTS.mdblok instrukcji

Dla każdego agenta także: .frontend-skills/profile.json, .frontend-skills/lessons.md i .frontend-skills/install.json.

Trae: Trae reads AGENTS.md only after it is enabled in its settings.

Zaplanowane przez sam instalator dla przykładowego projektu React z repozytorium.

.trae/rules/fe-motion.md
---
description: "Adds smooth, safe motion - transitions and keyframes on transform and opacity, prefers-reduced-motion, pause controls for auto-playing content, View Transitions and scroll-driven animations with feature checks, @starting-style for entry effects, and motion libraries set for reduced motion. Use when animating UI, adding page transitions, parallax or a carousel, or when an animation stutters."
globs: **/*.css,**/*.scss,**/*.less,**/*.jsx,**/*.tsx,**/*.vue,**/*.svelte,**/*.astro
alwaysApply: false
---

# Motion and animation (frontend-skills)

- Animate `transform` (`translate`, `scale`, `rotate`) and `opacity`, never `width`, `height`, `top`, `left` or `margin` (css/animate-composited).
- Non-essential motion runs only under `@media (prefers-reduced-motion: no-preference)` or is toned down under `reduce` (css/reduced-motion).
- Anything that moves on its own for more than five seconds has a pause control and stops on focus and hover (css/pause-auto-motion).
- Scroll-driven animations and anchor-positioned effects sit in `@supports` with a still fallback (css/limited-needs-supports).
- Call `document.startViewTransition` only after checking it exists; cross-document view transitions are an enhancement.
- Keep UI transitions short (about 150–300 ms) and purposeful; never animate for its own sake.
- Entry effects use `@starting-style`, exit effects `transition-behavior: allow-discrete`, not timers.
- `will-change` only to fix a measured problem, never on many elements.
- Animation libraries follow the user setting (Motion `MotionConfig reducedMotion="user"`, `useReducedMotion`).
- No flashing more than three times per second.

Before larger changes, read the full skill: `.trae/skills/fe-motion/SKILL.md`. Explain any rule id with `npx github:dawidolko/frontend-skills explain <id>`.
Prawdziwy plik

Gdzie trafia fe-motion dla: Continue

  • .frontend-skills/skills/fe-motion/SKILL.mdskill
  • .frontend-skills/skills/fe-motion/references/motion.mdskill
  • .continue/rules/fe-motion.mdplik reguł

Dla każdego agenta także: .frontend-skills/profile.json, .frontend-skills/lessons.md i .frontend-skills/install.json.

Zaplanowane przez sam instalator dla przykładowego projektu React z repozytorium.

.continue/rules/fe-motion.md
---
name: "Motion and animation"
description: "Adds smooth, safe motion - transitions and keyframes on transform and opacity, prefers-reduced-motion, pause controls for auto-playing content, View Transitions and scroll-driven animations with feature checks, @starting-style for entry effects, and motion libraries set for reduced motion. Use when animating UI, adding page transitions, parallax or a carousel, or when an animation stutters."
globs: ["**/*.css", "**/*.scss", "**/*.less", "**/*.jsx", "**/*.tsx", "**/*.vue", "**/*.svelte", "**/*.astro"]
alwaysApply: false
---

# Motion and animation (frontend-skills)

- Animate `transform` (`translate`, `scale`, `rotate`) and `opacity`, never `width`, `height`, `top`, `left` or `margin` (css/animate-composited).
- Non-essential motion runs only under `@media (prefers-reduced-motion: no-preference)` or is toned down under `reduce` (css/reduced-motion).
- Anything that moves on its own for more than five seconds has a pause control and stops on focus and hover (css/pause-auto-motion).
- Scroll-driven animations and anchor-positioned effects sit in `@supports` with a still fallback (css/limited-needs-supports).
- Call `document.startViewTransition` only after checking it exists; cross-document view transitions are an enhancement.
- Keep UI transitions short (about 150–300 ms) and purposeful; never animate for its own sake.
- Entry effects use `@starting-style`, exit effects `transition-behavior: allow-discrete`, not timers.
- `will-change` only to fix a measured problem, never on many elements.
- Animation libraries follow the user setting (Motion `MotionConfig reducedMotion="user"`, `useReducedMotion`).
- No flashing more than three times per second.

Before larger changes, read the full skill: `.frontend-skills/skills/fe-motion/SKILL.md`. Explain any rule id with `npx github:dawidolko/frontend-skills explain <id>`.
Prawdziwy plik

Gdzie trafia fe-motion dla: Amazon Q Developer

  • .frontend-skills/skills/fe-motion/SKILL.mdskill
  • .frontend-skills/skills/fe-motion/references/motion.mdskill
  • .amazonq/rules/frontend-skills.mdblok instrukcji

Dla każdego agenta także: .frontend-skills/profile.json, .frontend-skills/lessons.md i .frontend-skills/install.json.

Amazon Q Developer: Amazon Q Developer IDE plugins reach end of support on 2027-04-30; AWS points to Kiro.

Amazon Q Developer nie ma plików reguł zawężonych do typów plików; czyta skille i blok instrukcji.

Zaplanowane przez sam instalator dla przykładowego projektu React z repozytorium.

.amazonq/rules/frontend-skills.md
## Front-end work (frontend-skills)

- Before front-end work, read `.frontend-skills/profile.json` (the stack) and `.frontend-skills/lessons.md` (confirmed conventions of this project; they win over any skill).
- Use the installed `fe-*` skill that matches the files you edit.
- After changing UI code, run `npx github:dawidolko/frontend-skills audit --changed --json` and fix findings at `serious` and above; `explain <rule id>` gives the reason, the source and the fix.
- Name rule ids (such as `a11y/img-alt`) in reviews and commit messages.

### Skills

- `fe-motion` (Motion and animation): when editing `**/*.css`, `**/*.scss`, `**/*.less`, `**/*.jsx`, `**/*.tsx`, `**/*.vue`, `**/*.svelte`, `**/*.astro`, first read `.frontend-skills/skills/fe-motion/SKILL.md`.
Prawdziwy plik

Gdzie trafia fe-motion dla: Aider

  • .frontend-skills/skills/fe-motion/SKILL.mdskill
  • .frontend-skills/skills/fe-motion/references/motion.mdskill
  • CONVENTIONS.mdblok instrukcji
  • .aider.conf.ymlkonfiguracja

Dla każdego agenta także: .frontend-skills/profile.json, .frontend-skills/lessons.md i .frontend-skills/install.json.

Aider nie ma plików reguł zawężonych do typów plików; czyta skille i blok instrukcji.

Zaplanowane przez sam instalator dla przykładowego projektu React z repozytorium.

CONVENTIONS.md
## Front-end work (frontend-skills)

- Before front-end work, read `.frontend-skills/profile.json` (the stack) and `.frontend-skills/lessons.md` (confirmed conventions of this project; they win over any skill).
- Use the installed `fe-*` skill that matches the files you edit.
- After changing UI code, run `npx github:dawidolko/frontend-skills audit --changed --json` and fix findings at `serious` and above; `explain <rule id>` gives the reason, the source and the fix.
- Name rule ids (such as `a11y/img-alt`) in reviews and commit messages.

### Skills

- `fe-motion` (Motion and animation): when editing `**/*.css`, `**/*.scss`, `**/*.less`, `**/*.jsx`, `**/*.tsx`, `**/*.vue`, `**/*.svelte`, `**/*.astro`, first read `.frontend-skills/skills/fe-motion/SKILL.md`.
Prawdziwy plik

Jak go używać

Po instalacji agent sam ładuje skill, gdy zadanie pasuje do jego opisu. Możesz też poprosić o niego własnymi słowami, na przykład:

A żeby sprawdzić i poprawić pracę:

  • Użyj skilla fe-motion na tym pliku.
  • Uruchom audyt front-endu na moich zmianach i popraw wszystko, co poważne.
  • Wyjaśnij css/animate-composited i popraw to tutaj.

Reguły, których uczy

  • css/animate-composited

    Animations and transitions change transform and opacity, not layout properties such as width, height, top, left or margin.

    umiarkowanastatyczne

  • css/reduced-motion

    Non-essential motion (entrance animations, parallax, smooth scrolling) respects prefers-reduced-motion.

    umiarkowanastatyczne

  • css/pause-auto-motion

    Anything that moves, blinks or scrolls on its own for more than five seconds (carousels, marquees, background video) can be paused.

    poważnaręczneWCAG 2.2.2

  • css/limited-needs-supports

    CSS that is not Baseline yet (anchor positioning) or only just became Baseline (scroll-driven animations) sits in @supports with a fallback.

    umiarkowanastatyczne

Skrót reguł

Ta część jest kopiowana do zawężonego pliku reguł każdego agenta, więc musi być zrozumiała sama w sobie:

  • Animate transform (translate, scale, rotate) and opacity, never width, height, top, left or margin (css/animate-composited).
  • Non-essential motion runs only under @media (prefers-reduced-motion: no-preference) or is toned down under reduce (css/reduced-motion).
  • Anything that moves on its own for more than five seconds has a pause control and stops on focus and hover (css/pause-auto-motion).
  • Scroll-driven animations and anchor-positioned effects sit in @supports with a still fallback (css/limited-needs-supports).
  • Call document.startViewTransition only after checking it exists; cross-document view transitions are an enhancement.
  • Keep UI transitions short (about 150–300 ms) and purposeful; never animate for its own sake.
  • Entry effects use @starting-style, exit effects transition-behavior: allow-discrete, not timers.
  • will-change only to fix a measured problem, never on many elements.
  • Animation libraries follow the user setting (Motion MotionConfig reducedMotion="user", useReducedMotion).
  • No flashing more than three times per second.

Kroki, które wykonuje agent

  1. Find existing motion: tokens for duration and easing (--duration-fast, --ease-out), the global reduced-motion block, the animation library and its config.
  2. Choose the property: movement is translate, growth is scale or grid-template-rows: 0fr → 1fr, appearance is opacity.
  3. Write the motion inside prefers-reduced-motion: no-preference, or write a reduced variant (a fade instead of a slide) under reduce.
  4. For page transitions, feature-check the View Transition API and keep navigation working without it.
  5. Give carousels, marquees and background videos a pause button; do not autoplay under reduced motion.
  6. Profile in DevTools (Performance panel, rendering "Paint flashing"): no long frames, no layout in the animation.

Jak agent sprawdza swoją pracę

  • npx github:dawidolko/frontend-skills audit --changed reports transitions and keyframes on layout properties, a project with motion and no reduced-motion handling, and scroll timelines outside @supports.
  • By hand: turn on "reduce motion" in the operating system (or emulate it in DevTools Rendering) and use the page; pause every moving element with the keyboard.

Sprawdzane audytem

Testy statyczne tych reguł działają w audit; to prawdziwa sesja na przykładowym projekcie:

Nagranie terminala: audit wypisuje znaleziska według wagi z identyfikatorami reguł i miejscem plik:linia i kończy się błędem od progu serious.
audit: liczby według wagi, każda reguła z pierwszym miejscem, kod wyjścia.

Pliki referencyjne