astro-animations
Animation patterns for Astro sites. Scroll animations, micro-interactions, transitions, loading states. Performance-focused, accessibility-aware.
Best use case
astro-animations is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Animation patterns for Astro sites. Scroll animations, micro-interactions, transitions, loading states. Performance-focused, accessibility-aware.
Teams using astro-animations should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/astro-animations/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How astro-animations Compares
| Feature / Agent | astro-animations | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Animation patterns for Astro sites. Scroll animations, micro-interactions, transitions, loading states. Performance-focused, accessibility-aware.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# 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 1. **Purpose over polish** — Every animation should serve UX 2. **Performance first** — Use CSS, avoid JS where possible 3. **Respect preferences** — Honor `prefers-reduced-motion` 4. **Subtle over flashy** — Enhance, don't distract 5. **Fast** — Animations under 300ms for interactions 6. **No layout shift** — Animations must not cause cumulative layout shift 7. **Progressive enhancement** — UI must work without animations 8. **Intersection Observer** — Use for scroll-based reveals 9. **View Transitions API** — Leverage for page transitions in Astro 10. **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](references/css-utilities.md) — Base animation classes and keyframes - [Scroll Animations](references/scroll-animations.md) — Intersection Observer-based reveals - [Micro-Interactions](references/micro-interactions.md) — Button hovers, form focus, success/error animations - [Loading States](references/loading-states.md) — Skeleton loaders and shimmer effects - [Page Transitions](references/page-transitions.md) — View Transitions API implementation - [Stagger Animations](references/stagger-animations.md) — Sequential reveal patterns - [Reduced Motion](references/reduced-motion.md) — Accessibility best practices ## Forbidden - ❌ Animations without `prefers-reduced-motion` handling - ❌ 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
Related Skills
astrologue-ia
Expert astrologique brutal et transparent. Analyse thème natal (stelliums, aspects, maisons), synastrie/compatibilité (scores, red flags, comparaison multiple), transits et prévisions (dates clés, timing optimal), astrocartographie (meilleurs lieux de vie). Style direct, zéro bullshit, full transparence. Fetch automatique des données astro depuis astro-seek.com. Use when analyzing birth charts, compatibility, astrological timing, or best places to live based on astrology.
astro-a11y
Accessibility patterns for Astro lead generation sites. WCAG 2.1 AA compliance, screen readers, keyboard navigation, focus management, ARIA. Use for all accessibility implementation.
animations-transitions
SwiftUI animations, @Animatable macro, withAnimation, transitions, PhaseAnimator, KeyframeAnimator, and interactive motion design. Use when user asks about animations, transitions, @Animatable, withAnimation, spring animations, keyframes, or motion design.
adding-animations
Add micro-interactions and animations using Framer Motion. Use when user asks about animations, transitions, hover effects, or motion design. MANDATORY for every component.
astro-cta-injector
Inject Call-to-Action blocks into Astro site content with intelligent placement strategies. Use when the user wants to add CTAs, newsletter signups, product promotions, or any content blocks to blog posts. Supports multiple placement strategies (end, after 50%, after 60%), content scoring for relevance, and dry-run preview.
astro-content
Create Astro/Starlight MDX content pages. Use when the user says "write a new article", "add a blog post", "create content in Tech/Life category", or "add an MDX page".
astro-blog-write
Phase 3 - Writing blog content with human voice and SEO optimization
astro-i18n
Internationalization patterns for Astro sites. Multi-language routing, content translation, locale switching, RTL support. Use for multi-market lead generation.
managing-astro-local-env
Manage local Airflow environment with Astro CLI. Use when the user wants to start, stop, or restart Airflow, view logs, troubleshoot containers, or fix environment issues. For project setup, see setting-up-astro-project.
animations-motion
Add smooth animations to buttons, page transitions, tasks, modals, and interactive elements.
astro-seo
SEO markup patterns for Astro lead generation sites. Meta tags, Open Graph, Schema.org, sitemap, robots. Use for all SEO implementation.
astro-performance
Core Web Vitals and performance optimization for Astro sites. LCP, CLS, INP optimization, bundle size, fonts, third-party scripts. Use for performance tuning.