본문으로 건너뛰기
Skillpedia
웹사이트 및 UI (프런트엔드)75k · #2722

animation-performance

하는 일

이 스킬은 렌더링을 느리게 하는 속성이 있는지 CSS 애니메이션을 점검합니다. 웹사이트에서 부드러운 움직임을 원하는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓CSS 애니메이션이 끊기거나 버벅거릴 때.
  • ✓스타일시트가 크기, 위치, 여백을 애니메이션할 때.
  • ✓애니메이션이 움직임 감소 설정을 따르게 하고 싶을 때.

스킬 링크

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/animation-performance/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/animation-performance/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 메뉴의 슬라이드 인 애니메이션이 모바일에서 버벅거려요. CSS를 확인해서 더 부드럽게 만들어 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 레이아웃 속성을 바꾸는 애니메이션을 찾아 transform과 opacity 변화로 바꾸고, 움직임 감소 설정을 존중하도록 제안합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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

자주 묻는 질문

transform과 opacity가 왜 더 부드러운가요?

매 프레임마다 레이아웃과 페인트를 일으키지 않고 그래픽 프로세서가 처리할 수 있기 때문이라고 스킬이 설명합니다.

will-change는 무엇을 하나요?

요소에 자체 렌더링 레이어를 주므로, 아껴서 쓰라고 스킬이 말합니다.

간단한 효과에도 라이브러리를 써야 하나요?

간단한 효과에는 JavaScript 애니메이션 라이브러리보다 CSS 전환과 애니메이션을 추천합니다.

상세 정보

작성자의 원본 설명

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.

repo: thedaviddias/Front-End-Checklist

인기도

GitHub 스타
75k
순위
#2722
라이선스
MIT
업데이트
2026. 10. 31.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬