notifications-toasts — скилл для Claude Code
Скилл учит ИИ-агента анимировать тосты и системные уведомления по 12 принципам классической анимации. Пригодится при вёрстке всплывающих окон в UI.
npx skills add dylantarre/animation-principles --skill notifications-toasts -a claude-codeЧто делает notifications-toasts
Скилл даёт модели конкретные правила движения интерфейсных сообщений: от появления со сжатием при приземлении до лёгкого уменьшения масштаба до 95% за 100 мс перед закрытием. Вместо случайных CSS-свойств агент получает проверенные тайминги — например, 200–300 мс на вход и 150–250 мс на выход.
Внутри собраны рекомендации по кривым Безье вроде cubic-bezier(0.68, -0.55, 0.27, 1.55) для отскока и разделению слоёв анимации. Прогресс-бар скрытия положено анимировать через transform-origin и масштаб, потому что изменение width нагружает браузер лишними перерисовками макета.
Какие задачи решает
- настроить CSS-анимацию плавного появления и скрытия тостов
- анимировать индикатор автозакрытия уведомления без просадок производительности
- добавить визуальное предупреждение перед закрытием всплывающего окна
- подобрать кривые Безье и тайминги для системных алертов
Примеры запросов агенту
- Сделай CSS-анимацию появления тоста с отскоком через
cubic-bezier - Напиши стили для индикатора автозакрытия снэкбара на 4 секунды
- Добавь эффект сжатия перед исчезновением карточки уведомления
Как установить notifications-toasts
1Через Skills CLI (Vercel)
npx skills add dylantarre/animation-principles --skill notifications-toasts -a claude-code2Вручную: положить файлы
~/.claude/skills/notifications-toasts/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/notifications-toasts/
1Через Skills CLI (Vercel)
npx skills add dylantarre/animation-principles --skill notifications-toasts -a codex2Вручную: положить файлы
.agents/skills/notifications-toasts/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add dylantarre/animation-principles --skill notifications-toasts -a cursor2Вручную: положить файлы
.cursor/skills/notifications-toasts/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install dylantarre/animation-principles notifications-toasts2Вручную: положить файлы
.github/skills/notifications-toasts/SKILL.md1Через Skills CLI (Vercel)
npx skills add dylantarre/animation-principles --skill notifications-toasts -a gemini-cli2Командой платформы
gemini skills install https://github.com/dylantarre/animation-principles --path skills/07-by-ui-element/notifications-toastsВручную: положить файлы
.devin/skills/notifications-toasts/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add dylantarre/animation-principles --skill notifications-toasts -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о notifications-toasts
Как установить notifications-toasts в Claude Code?
Выполните в терминале команду npx skills add dylantarre/animation-principles --skill notifications-toasts -a claude-code. Файл инструкции запишется в ~/.claude/skills/notifications-toasts/SKILL.md.
Что делает скилл notifications-toasts?
Он подсказывает ассистенту проверенные тайминги, кривые перехода и CSS-шаблоны для алертов и тостов на базе классических принципов анимации.
Какие тайминги скилл задаёт для уведомлений?
Появление тоста занимает 200–300 мс, скрытие длится 150–250 мс, а задержка перед автозакрытием составляет от 3000 до 5000 мс.
Исходный текст
SKILL.md · MIT
---
name: notifications-toasts
description: Use when animating notifications, toasts, alerts, snackbars, or system messages to grab attention appropriately
---
# Notification & Toast Animation Principles
Apply Disney's 12 principles to notifications for attention-grabbing yet non-disruptive alerts.
## Principles Applied to Notifications
### 1. Squash & Stretch
Toast can compress slightly on entrance impact, then stretch back. Creates a "landing" feel as if it arrived from off-screen.
### 2. Anticipation
Before auto-dismiss, toast can contract slightly (95% scale) for 100ms. Signals imminent departure to user.
### 3. Staging
Notifications should appear in consistent locations. Use color and icons to stage importance: info, success, warning, error.
### 4. Straight Ahead & Pose to Pose
Define states: entering, visible, exiting, stacked. Clear keyframes for entrance, attention (if needed), and exit.
### 5. Follow Through & Overlapping Action
Icon animates after container arrives (checkmark draws, bell wobbles). Progress bar for auto-dismiss follows toast entrance.
### 6. Ease In & Ease Out
Enter: `ease-out` (fast in, slow settle). Exit: `ease-in` (slow start, fast out). `cubic-bezier(0.68, -0.55, 0.27, 1.55)` for bounce.
### 7. Arcs
Toasts sliding from corners can follow slight arc. Bell icons should swing in arc, not rotate rigidly.
### 8. Secondary Action
While toast slides in (primary), shadow appears (secondary), icon animates (tertiary), progress bar starts (quaternary).
### 9. Timing
- Toast enter: 200-300ms
- Toast exit: 150-250ms
- Auto-dismiss delay: 3000-5000ms
- Attention pulse: 1000ms loop
- Success checkmark draw: 300ms
- Stack reorder: 200ms
### 10. Exaggeration
Error notifications can shake or pulse red. Critical alerts can be larger, bolder animations. Match urgency to importance.
### 11. Solid Drawing
Maintain consistent toast sizing. Icons should be crisp. Progress bars should be smooth (use transforms, not width).
### 12. Appeal
Smooth notifications feel polished. Jarring popups annoy users. A well-animated toast conveys professionalism.
## CSS Implementation
```css
.toast {
animation: toastEnter 300ms cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.toast.exiting {
animation: toastExit 200ms ease-in forwards;
}
@keyframes toastEnter {
from {
opacity: 0;
transform: translateY(-100%) scale(0.9);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
@keyframes toastExit {
to {
opacity: 0;
transform: translateX(100%);
}
}
.toast-progress {
transform-origin: left;
animation: progress 4000ms linear forwards;
}
```
## Key Properties
- `transform`: translate, scale
- `opacity`: fade
- `animation`: entrance/exit sequences
- `transform-origin`: progress bars
- `box-shadow`: depth
© dylantarre · MIT · dylantarre/animation-principles