animation-performance
What it does
This skill checks CSS animations for properties that slow down rendering. It is for developers who want smooth motion on websites.
When to use it
- ✓When a CSS animation looks choppy or stutters on a page.
- ✓When a stylesheet animates size, position or margin.
- ✓When you want your animations to respect reduced-motion settings.
Skill link
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/animation-performance/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“My menu slide-in animation stutters on mobile. Can you check my CSS and make it smoother?”
5 new skills a week. 1 minute to read.
How it works
The agent finds animations that change layout properties, converts them to transform and opacity changes, and suggests respecting the reduced-motion setting.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Use transform and opacity for animations
Animating layout properties (width, height, top, margin) triggers the full browser rendering pipeline on every frame — style recalculation, layout, paint, and composite. This runs on the main thread and competes with JavaScript. Animating transform and opacity skips layout and paint entirely and runs on a dedicated GPU thread, achieving smooth 60fps even when the main thread is busy.
Quick Reference
- Only transform and opacity can be composited on the GPU without triggering layout
- Use will-change: transform sparingly to promote an element to its own compositor layer
- Prefer CSS transitions and animations over JavaScript animation libraries for simple effects
- Respect prefers-reduced-motion to disable animations for users who need it
Check
Find CSS animations or transitions in this file that animate layout-triggering properties like top, left, width, height, or margin. Flag them for optimization.
Fix
Convert layout-triggering animations to use transform equivalents: position changes to translate(), size changes to scale().
Explain
Explain the browser rendering pipeline, why transform and opacity are performant for animation, and how the GPU compositor works.
Code Review
Review stylesheets, component styles, and responsive states related to Use transform and opacity for animations. Flag exact selectors, declarations, or breakpoints that violate the rule in the rendered UI.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/css/animation-performance
FAQ
Why are transform and opacity smoother?
The skill says they can be handled by the graphics processor without triggering layout and paint on every frame.
What does will-change do?
The skill says to use it sparingly, to give an element its own rendering layer.
Should I use a library for simple effects?
The skill recommends CSS transitions and animations for simple effects over JavaScript animation libraries.
Details
Original description by the author
Use when reviewing stylesheets, component styles, and responsive behavior related to Use transform and opacity for animations. Check the rendered layout across breakpoints and interaction states before proposing a fix.
Popularity
- GitHub stars
- 75k
- Ranking position
- #2722
- License
- MIT
- Updated
- 10/31/2026
Comments
- …
More skills from this repository
frontendchecklist
75kChecks frontend code and live pages against 380+ rules for accessibility, speed, SEO and security, using a command-line tool.
frontend-checklist-global
75kAudits a frontend project against all 386 Front-End Checklist rules, and gives a specific fix for each issue found.
404-page
75kChecks that your missing-page screen offers helpful links and returns a real 404 status, to help lost visitors find their way.
about-page
75kReviews whether your site has a clear About page that explains who runs it, to build trust with visitors and search engines.
Similar skills
angular-developer
280kHelps your agent create Angular code and give project structure advice. Useful for starting new projects, creating code parts, or improving performance and accessibility.
frontend-a11y
280kHelps your agent make web interfaces accessible to everyone. It ensures websites and apps work well with screen readers and keyboard navigation.
frontend-patterns
280kHas your agent apply modern patterns in frontend development. It optimizes performance, manages state, and follows best practices in React and Next.js.