carousels-sliders — скилл для Claude Code: что делает и как установить
Скилл помогает ИИ настраивать плавную анимацию каруселей, слайдеров и галерей по правилам классической анимации.
npx skills add dylantarre/animation-principles --skill carousels-sliders -a claude-codeЧто делает carousels-sliders
Скилл переносит 12 диснеевских принципов анимации на интерфейсы: слайдеры, галереи картинок и горизонтальные ленты. Он задаёт точные интервалы движений: от 300 до 500 мс на смену слайда, 150 мс для точек пагинации и 4000–6000 мс для автопрокрутки. Для свайпов рекомендуется замедление ease-out, а для кнопок — кривая cubic-bezier(0.25, 0.1, 0.25, 1).
Внутри описаны правила инерции и акцентов: небольшое сжатие карточки при быстром свайпе, сдвиг на 5–10 пикселей перед началом хода и лёгкий откат после скролла. Неактивные слайды уменьшаются до масштаба 0.9 с прозрачностью 0.6. Для вёрстки предложены свойства scroll-snap-type: x mandatory и связка transform с opacity.
Инструкции опираются на чистый CSS и математику таймингов, поэтому внешние скриптовые библиотеки анимации для работы не требуются.
Какие задачи решает
- подобрать тайминги для плавной смены слайдов и пагинации
- настроить нативную прокрутку с фиксацией через
scroll-snap-type - оформить эффекты сжатия и инерции при свайпах галереи
- выделить активный слайд масштабированием и прозрачностью
Примеры запросов агенту
- Настрой CSS-анимацию перелистывания карточек для горизонтального слайдера.
- Добавь эффект инерции и уменьшение неактивных слайдов по правилам carousels-sliders.
- Пропиши тайминги и кривые Безье для переключения слайдов по кнопкам.
Как установить carousels-sliders
1Через Skills CLI (Vercel)
npx skills add dylantarre/animation-principles --skill carousels-sliders -a claude-code2Вручную: положить файлы
~/.claude/skills/carousels-sliders/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/carousels-sliders/
1Через Skills CLI (Vercel)
npx skills add dylantarre/animation-principles --skill carousels-sliders -a codex2Вручную: положить файлы
.agents/skills/carousels-sliders/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add dylantarre/animation-principles --skill carousels-sliders -a cursor2Вручную: положить файлы
.cursor/skills/carousels-sliders/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install dylantarre/animation-principles carousels-sliders2Вручную: положить файлы
.github/skills/carousels-sliders/SKILL.md1Через Skills CLI (Vercel)
npx skills add dylantarre/animation-principles --skill carousels-sliders -a gemini-cli2Командой платформы
gemini skills install https://github.com/dylantarre/animation-principles --path skills/07-by-ui-element/carousels-slidersВручную: положить файлы
.devin/skills/carousels-sliders/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add dylantarre/animation-principles --skill carousels-sliders -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о carousels-sliders
Как установить carousels-sliders в Claude Code?
Выполните команду npx skills add dylantarre/animation-principles --skill carousels-sliders -a claude-code. Файл навыка запишется по пути ~/.claude/skills/carousels-sliders/SKILL.md.
Что делает скилл carousels-sliders?
Он даёт ИИ правила и готовые CSS-свойства для анимации горизонтального скролла, галерей и каруселей.
Какие тайминги рекомендуются для смены слайдов и пагинации?
Для перехода слайда задаётся 300–500 мс, для точек пагинации — 150 мс, а пауза автопрокрутки длится 4000–6000 мс.
Исходный текст
SKILL.md · MIT
---
name: carousels-sliders
description: Use when animating carousels, sliders, image galleries, or horizontally scrolling content for smooth navigation
---
# Carousel & Slider Animation Principles
Apply Disney's 12 principles to carousels and sliders for smooth, intuitive navigation.
## Principles Applied to Carousels
### 1. Squash & Stretch
Slides can slightly compress in scroll direction during fast swipes. Expands perception of speed and momentum.
### 2. Anticipation
Before slide change, current slide can shift 5-10px in direction of navigation. Button can depress before triggering.
### 3. Staging
Current/active slide should be prominently displayed: larger, centered, more opaque. Adjacent slides can be dimmed or scaled down.
### 4. Straight Ahead & Pose to Pose
Use pose-to-pose: define exact positions for each slide. Snap points should be clear and predictable.
### 5. Follow Through & Overlapping Action
After snap, slide can overshoot slightly and settle back. Content within slide (text, buttons) lags behind container movement.
### 6. Ease In & Ease Out
Swipe release: `ease-out` (momentum slowdown). Button navigation: `ease-in-out`. `cubic-bezier(0.25, 0.1, 0.25, 1)` for smooth slides.
### 7. Arcs
3D carousels should rotate slides along curved paths. Coverflow effects follow arc naturally. Even flat carousels can have subtle Y movement.
### 8. Secondary Action
While slide moves (primary), pagination updates (secondary), adjacent slides scale/fade (tertiary), progress bar moves (quaternary).
### 9. Timing
- Slide transition: 300-500ms
- Swipe momentum: 200-400ms
- Pagination dot: 150ms
- Autoplay interval: 4000-6000ms
- Pause on hover: immediate
- Adjacent slide scale: 250ms
### 10. Exaggeration
Hero carousels can use more dramatic transitions. Product carousels should be smoother, less distracting. Scale to context.
### 11. Solid Drawing
Maintain consistent slide dimensions. Gaps should stay uniform. Aspect ratios must be preserved during any transforms.
### 12. Appeal
Smooth carousels feel premium. Janky sliders feel cheap. Touch response should feel native. Investment here pays dividends.
## CSS Implementation
```css
.carousel-track {
display: flex;
transition: transform 400ms cubic-bezier(0.25, 0.1, 0.25, 1);
}
.carousel-slide {
flex-shrink: 0;
transition: transform 300ms ease-out,
opacity 300ms ease-out;
}
.carousel-slide:not(.active) {
transform: scale(0.9);
opacity: 0.6;
}
.pagination-dot {
transition: transform 150ms ease-out,
background-color 150ms ease-out;
}
.pagination-dot.active {
transform: scale(1.3);
}
/* CSS scroll snap */
.carousel-container {
scroll-snap-type: x mandatory;
scroll-behavior: smooth;
}
.carousel-slide {
scroll-snap-align: center;
}
```
## Key Properties
- `transform`: translateX, scale
- `opacity`: inactive slides
- `scroll-snap-type`: native snapping
- `scroll-behavior`: smooth scrolling
- `transition`: slide movements
© dylantarre · MIT · dylantarre/animation-principles