css-native · dylantarre — скилл для Claude Code: 12 принципов анимации на CSS
Скилл помогает агенту писать анимации на чистом CSS: @keyframes, transition, transform. Пригодится, когда нужны движения интерфейса без JS-библиотек.
npx skills add dylantarre/animation-principles --skill css-native -a claude-codeЧто делает css-native
Скилл описывает все 12 принципов анимации Диснея и показывает, как каждый из них выразить средствами CSS. Squash and stretch — через scaleX и scaleY в ключевых кадрах. Anticipation — короткий замах перед прыжком. Staging — развести героя и фон по z-index, размытию и прозрачности. Follow through и overlapping action — сдвинуть анимацию волос и плаща на небольшую задержку через animation-delay.
Внутри есть готовые сниппеты на каждый принцип: @keyframes для дуги и отскока, cubic-bezier для slow in и slow out, offset-path для настоящих кривых, transform-style: preserve-3d и perspective для объёма. Отдельная таблица подсказывает длительности: микро-взаимодействия, отклик кнопки, переходы страниц, сложные сцены. Скилл советует начать с 100–200 мс для мелких реакций и не растягивать их дальше 300 мс.
Работает в Claude, Codex, Cursor, GitHub Copilot, Gemini CLI и OpenCode. Ставится одной командой, файл скилла кладётся в каталог платформы. Для Copilot команда другая — через gh skill install. Никаких зависимостей и сборки не нужно: всё держится на свойствах CSS, которые уже понимает браузер.
Какие задачи решает
- сделать отскок кнопки на чистом CSS без JS
- добавить замах перед анимацией прыжка
- развести героя и фон по глубине резкости
- подобрать длительность для микро-взаимодействия
- задать движение по дуге через
offset-path
Примеры запросов агенту
- Сделай анимацию мяча с squash and stretch на CSS, без JS
- Добавь замах перед прыжком персонажа через
@keyframes - Подбери длительности для отклика кнопки и перехода страницы
Как установить css-native
1Через Skills CLI (Vercel)
npx skills add dylantarre/animation-principles --skill css-native -a claude-code2Вручную: положить файлы
~/.claude/skills/css-native/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/css-native/
1Через Skills CLI (Vercel)
npx skills add dylantarre/animation-principles --skill css-native -a codex2Вручную: положить файлы
.agents/skills/css-native/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add dylantarre/animation-principles --skill css-native -a cursor2Вручную: положить файлы
.cursor/skills/css-native/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install dylantarre/animation-principles css-native2Вручную: положить файлы
.github/skills/css-native/SKILL.md1Через Skills CLI (Vercel)
npx skills add dylantarre/animation-principles --skill css-native -a gemini-cli2Командой платформы
gemini skills install https://github.com/dylantarre/animation-principles --path skills/09-by-tool-framework/css-nativeВручную: положить файлы
.devin/skills/css-native/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add dylantarre/animation-principles --skill css-native -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Из того же набора86
Другие версии css-native
Похожие
Рядом в теме «Фронтенд и UI»
Всё по теме «Фронтенд и UI» →Вопросы о css-native
Как установить css-native в Claude?
Выполните npx skills add dylantarre/animation-principles --skill css-native -a claude-code. Файл появится по пути ~/.claude/skills/css-native/SKILL.md.
Что делает css-native?
Показывает, как реализовать 12 принципов анимации Диснея на CSS: ключевые кадры, переходы, трансформации. Агент берёт оттуда готовые сниппеты и длительности.
Нужны ли библиотеки для работы скилла?
Нет. Все примеры построены на animation, transition, transform и offset-path.
Исходный текст
SKILL.md · MIT
---
name: css-native
description: Use when implementing Disney's 12 animation principles with pure CSS animations and transitions
---
# CSS Native Animation Principles
Implement all 12 Disney animation principles using CSS animations, transitions, and transforms.
## 1. Squash and Stretch
```css
@keyframes squash-stretch {
0%, 100% { transform: scaleX(1) scaleY(1); }
50% { transform: scaleX(1.2) scaleY(0.8); }
}
.ball { animation: squash-stretch 0.3s ease-in-out; }
```
## 2. Anticipation
```css
@keyframes anticipate-jump {
0% { transform: translateY(0); }
20% { transform: translateY(10px) scaleY(0.9); } /* wind up */
100% { transform: translateY(-100px); }
}
```
## 3. Staging
```css
.hero { z-index: 10; filter: none; }
.background { z-index: 1; filter: blur(2px); opacity: 0.7; }
```
## 4. Straight Ahead / Pose to Pose
```css
/* Pose to pose - define keyframes explicitly */
@keyframes walk-cycle {
0% { background-position: 0 0; }
25% { background-position: -100px 0; }
50% { background-position: -200px 0; }
75% { background-position: -300px 0; }
100% { background-position: -400px 0; }
}
```
## 5. Follow Through and Overlapping Action
```css
.character { animation: move 0.5s ease-out; }
.hair { animation: move 0.5s ease-out 0.05s; } /* slight delay */
.cape { animation: move 0.5s ease-out 0.1s; }
```
## 6. Slow In and Slow Out
```css
.element {
transition: transform 0.4s cubic-bezier(0.42, 0, 0.58, 1);
}
/* Or use: ease-in-out, ease-in, ease-out */
```
## 7. Arc
```css
@keyframes arc-motion {
0% { transform: translate(0, 0); }
50% { transform: translate(100px, -80px); }
100% { transform: translate(200px, 0); }
}
/* Use offset-path for true arcs */
.element { offset-path: path('M0,100 Q100,0 200,100'); }
```
## 8. Secondary Action
```css
.button:hover {
transform: scale(1.05);
}
.button:hover .icon {
animation: wiggle 0.3s ease-in-out;
}
```
## 9. Timing
```css
.fast { animation-duration: 0.15s; }
.normal { animation-duration: 0.3s; }
.slow { animation-duration: 0.6s; }
.dramatic { animation-duration: 1.2s; }
```
## 10. Exaggeration
```css
@keyframes exaggerated-bounce {
0%, 100% { transform: translateY(0) scale(1); }
50% { transform: translateY(-150px) scale(0.8, 1.3); }
}
```
## 11. Solid Drawing
```css
.element {
transform-style: preserve-3d;
perspective: 1000px;
}
.face { transform: rotateY(20deg); }
```
## 12. Appeal
```css
.appealing {
border-radius: 50%;
box-shadow: 0 4px 20px rgba(0,0,0,0.1);
transition: all 0.3s ease;
}
.appealing:hover {
transform: scale(1.02);
box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
```
## Timing Reference
| Action | Duration |
|--------|----------|
| Micro-interaction | 100-200ms |
| Button feedback | 150-300ms |
| Page transitions | 300-500ms |
| Complex animations | 500-1000ms |
## Key CSS Properties
- `animation` / `@keyframes`
- `transition`
- `transform`
- `offset-path` (motion paths)
- `animation-timing-function`
- `animation-delay`
© dylantarre · MIT · dylantarre/animation-principles