clawic-animationslisted
Install: claude install-skill trku052-png/social-media-youtube-skills
## GPU-Accelerated Properties
Only these properties animate on the compositor thread (60fps):
| Property | Use |
|----------|-----|
| `transform` | Move, rotate, scale (translateX, rotate, scale) |
| `opacity` | Fade in/out |
Everything else triggers layout or paint. Avoid animating:
- `width`, `height`, `margin`, `padding` (layout thrashing)
- `top`, `left`, `right`, `bottom` (use transform instead)
- `border-width`, `font-size` (expensive reflows)
```css
/* ❌ Triggers layout every frame */
.slide { left: 100px; transition: left 0.3s; }
/* ✅ GPU accelerated */
.slide { transform: translateX(100px); transition: transform 0.3s; }
```
## Reduced Motion
~5% of users experience vestibular disorders (dizziness, nausea from motion).
```css
/* Only animate if user hasn't requested reduced motion */
@media (prefers-reduced-motion: no-preference) {
.animated { animation: slide-in 0.5s ease-out; }
}
/* Or disable for those who requested it */
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}
```
Keep subtle fades and color changes even with reduced motion. Remove parallax, bouncing, infinite loops.
## Timing Functions
| Easing | Use case |
|--------|----------|
| `ease-out` | Elements entering view (appears responsive) |
| `ease-in` | Elements exiting view (accelerates away) |
| `ease-in-out` | Elements moving within