npx skills add ...
npx skills add freshtechbro/claudedesignskills --skill scroll-reveal-libraries
Simple scroll-triggered reveal animations using AOS (Animate On Scroll). Use this skill when building marketing pages, landing pages, or content-heavy sites requiring basic fade/slide effects without complex animation orchestration. Triggers on tasks involving scroll animations, scroll-triggered reveals, AOS, simple animations, or basic scroll effects. Alternative to GSAP ScrollTrigger and Locomotive Scroll for simpler use cases. Compare with motion-framer for React-specific animations.
npx skills add freshtechbro/claudedesignskills --skill scroll-reveal-libraries
This skill covers AOS (Animate On Scroll), a lightweight CSS-driven library for scroll-triggered animations. AOS excels at simple fade, slide, and zoom effects activated when elements enter the viewport.
Key Features:
When to Use:
When NOT to Use:
CDN (Quickest):
NPM/Yarn (Recommended):
Apply animations using the data-aos attribute:
Global Configuration:
Per-Element Overrides:
Trigger animations based on a different element's scroll position:
Basic Setup:
Refreshing on Route Changes:
Dynamic Content Updates:
Component Wrapper Pattern:
Problem: New elements don't animate after being added dynamically.
Solution: Call AOS.refresh() or AOS.refreshHard():
Problem: AOS doesn't detect elements on first render or route changes.
Solution: Initialize in useEffect and refresh on route/content changes:
Problem: Page scrolling feels janky with many animated elements.
Solution: Reduce animated elements and use once: true:
Problem: Custom CSS interferes with AOS animations.
Solution: Use more specific selectors and avoid !important:
Problem: Animations trigger at unexpected scroll positions.
Solution: Understand anchor placement options:
Problem: Values above 3000ms don't work.
Solution: Add custom CSS for extended durations:
fade-in - Simple fade infade-up - Fade in from bottomfade-down - Fade in from topfade-left - Fade in from rightfade-right - Fade in from leftfade-up-right - Diagonal fadefade-up-left - Diagonal fadefade-down-right - Diagonal fadefade-down-left - Diagonal fadeslide-up - Slide from bottomslide-down - Slide from topslide-left - Slide from rightslide-right - Slide from leftzoom-in - Zoom inzoom-in-up - Zoom in from bottomzoom-in-down - Zoom in from topzoom-in-left - Zoom in from rightzoom-in-right - Zoom in from leftzoom-out - Zoom outzoom-out-up - Zoom out to topzoom-out-down - Zoom out to bottomzoom-out-left - Zoom out to leftzoom-out-right - Zoom out to rightflip-up - Flip from bottomflip-down - Flip from topflip-left - Flip from rightflip-right - Flip from leftCreate custom animations with CSS:
| Feature | AOS | GSAP ScrollTrigger |
|---|---|---|
| Complexity | Simple, data-attribute based | Advanced, JavaScript API |
| Use Case | Simple reveals | Complex timelines |
| File Size | ~13KB | ~27KB (GSAP) + ScrollTrigger |
| Performance | CSS-driven | JavaScript-driven |
| Learning Curve | Minutes | Hours |
| Customization | Limited | Extensive |
| Best For | Marketing pages | Interactive experiences |
Use AOS when:
Use GSAP ScrollTrigger when:
scripts/aos_generator.py - Generate AOS HTML boilerplatescripts/config_builder.py - Build AOS configurationreferences/aos_api.md - Complete AOS API referencereferences/animation_catalog.md - All built-in animations with demosreferences/integration_patterns.md - Framework integration guidesassets/starter_aos/ - Complete AOS starter templateassets/examples/ - Production-ready patterns