motion-css-animation-audit

Audit CSS and Motion animations, classifying performance risks into tiers S-F.

Updated Jul 2, 2024
One-click install
npx skills add https://github.com/carloitaben/dotfiles --skill motion-css-animation-audit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: motion-css-animation-audit
Source: https://github.com/carloitaben/dotfiles/tree/main/.config/opencode/skills/motion-css-animation-audit
Command: npx skills add https://github.com/carloitaben/dotfiles --skill motion-css-animation-audit

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill identifies and analyzes Motion & CSS animations within a project, classifying their performance impact and providing actionable recommendations for improvement to ensure smooth user experiences.

Core Features & Use Cases

  • Animation Inventory: Discovers all CSS transitions, keyframe animations, and JavaScript-driven animations.
  • Performance Classification: Assigns a performance tier (S-F) based on rendering pipeline impact (compositor vs. layout).
  • Report Generation: Produces a prioritized report detailing animation risks, evidence, and specific fixes.
  • Use Case: When a website's scrolling or hover effects feel janky, this Skill can pinpoint the exact animations causing performance issues and suggest how to optimize them, for example, by switching from layout-triggering properties to transform and opacity.

Quick Start

Use the motion-css-animation-audit skill to audit all CSS animations on the current page.

Frequently Asked Questions about motion-css-animation-audit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I audit CSS animations for performance issues?

To audit CSS animations, the skill inventories all transitions, keyframes, and JS-driven motion, then classifies their rendering pipeline impact into performance tiers from S to F. It generates a prioritized report with evidence and specific fixes to resolve jank.

Why does my website scrolling feel janky when CSS animations are running?

Website scrolling feels janky when CSS animations trigger main-thread layout or paint costs instead of running on the compositor thread. The skill analyzes your motion libraries and CSS to pinpoint animations causing performance bottlenecks and suggests switching to transform properties.

What is the best way to classify animation performance risks in a web project?

The best way to classify animation performance risks is by evaluating rendering pipeline impact, specifically compositor-thread versus main-thread work. This skill assigns performance tiers from S to F based on layout and paint costs to prioritize remediation.

Can I use this animation audit to analyze JavaScript-driven animations and Web Animations API?

Yes, you can use this animation audit to analyze JavaScript-driven animations and the Web Animations API. The skill evaluates motion libraries and JS-driven animations alongside CSS transitions to assess their layout and paint performance costs.

How do I fix CSS animations that are triggering layout and paint instead of using the compositor?

To fix CSS animations triggering layout and paint, you should switch to compositor-friendly properties like transform and opacity. The skill provides a structured report template with evidence collection guidance and actionable improvements for these specific remediation scenarios.

What does the motion-css-animation-audit skill do?

The motion-css-animation-audit skill audits Motion and CSS animations by classifying performance risks and generating a prioritized report with actionable improvements. It analyzes rendering pipeline impact to identify compositor-thread versus main-thread work across CSS and JavaScript animations.