← スキル一覧に戻る

astro-animations
by Soborbo
⭐ 1🍴 0📅 2026年1月19日
SKILL.md
name: astro-animations description: Animation patterns for Astro sites. Scroll animations, micro-interactions, transitions, loading states. Performance-focused, accessibility-aware.
Astro Animations Skill
Purpose
Provides animation patterns that enhance UX without harming performance or accessibility. All animations must serve a functional purpose and respect user motion preferences.
Core Rules
- Purpose over polish — Every animation should serve UX
- Performance first — Use CSS, avoid JS where possible
- Respect preferences — Honor
prefers-reduced-motion - Subtle over flashy — Enhance, don't distract
- Fast — Animations under 300ms for interactions
- No layout shift — Animations must not cause cumulative layout shift
- Progressive enhancement — UI must work without animations
- Intersection Observer — Use for scroll-based reveals
- View Transitions API — Leverage for page transitions in Astro
- Loading feedback — Always show loading states with skeletons or spinners
Animation Timing
| Type | Duration | Easing |
|---|---|---|
| Micro-interaction | 100-200ms | ease-out |
| Reveal/Fade | 200-400ms | ease-out |
| Slide | 300-500ms | ease-in-out |
| Page transition | 200-300ms | ease-out |
References
- CSS Utilities — Base animation classes and keyframes
- Scroll Animations — Intersection Observer-based reveals
- Micro-Interactions — Button hovers, form focus, success/error animations
- Loading States — Skeleton loaders and shimmer effects
- Page Transitions — View Transitions API implementation
- Stagger Animations — Sequential reveal patterns
- Reduced Motion — Accessibility best practices
Forbidden
- ❌ Animations without
prefers-reduced-motionhandling - ❌ Animations over 500ms for UI feedback
- ❌ Animations that block interaction
- ❌ Gratuitous/decorative-only animations
- ❌ JS animations when CSS works
- ❌ Animations that cause layout shift
- ❌ Auto-playing animations without user control
- ❌ Animations that flash more than 3 times per second
Definition of Done
- All animations respect reduced motion
- Interaction animations under 300ms
- Reveal animations under 500ms
- No layout shift from animations
- Loading states have skeleton/spinner
- Page transitions smooth
- Focus states animated
- All animations tested with
prefers-reduced-motion: reduce - Scroll animations use Intersection Observer
- No animation blocks user interaction
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です