scroll-reveal-animation

Add smooth scroll-triggered fade-in and stagger animations using Framer Motion in React/Next.js. Use when the user wants scroll animations, fade-in effects, whileInView animations, staggered reveals, or entrance animations on sections, cards, or text. Triggers on "animate on scroll", "fade in on scroll", "smooth animations", "stagger children", or "scroll reveal".

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "scroll-reveal-animation" with this command: npx skills add ethandiedericks/scroll-reveal-animation/ethandiedericks-scroll-reveal-animation-scroll-reveal-animation

Smooth Scroll Animations

Reusable Framer Motion animation components for smooth scroll-triggered reveals in React/Next.js.

Requirements

  • framer-motion must be installed. React 18+, designed for Next.js App Router and React projects using TypeScript.

Workflow

  1. Add the animations file — Copy assets/animations.tsx into the project at components/animations.tsx (or lib/animations.tsx). Add "use client" to any file importing these components in Next.js App Router.
  2. Import and use — Import AnimatedSection, AnimatedChildren, AnimatedItem, and/or AnimatedText and wrap UI elements following the patterns below.

Usage Patterns

Staggered card gridAnimatedChildren + AnimatedItem for cascading reveals:

<AnimatedSection>
  <AnimatedChildren className="grid grid-cols-3 gap-6">
    {items.map((item) => (
      <AnimatedItem key={item.id}><Card {...item} /></AnimatedItem>
    ))}
  </AnimatedChildren>
</AnimatedSection>

Section with heading + content — heading reveals, then content staggers in:

<AnimatedSection>
  <AnimatedChildren className="mb-12 text-center">
    <AnimatedText as="h2" className="text-4xl">Section Title</AnimatedText>
    <AnimatedText as="p" className="text-lg text-muted-foreground">
      Subtitle text here.
    </AnimatedText>
  </AnimatedChildren>
  <AnimatedChildren className="grid grid-cols-2 gap-8">
    <AnimatedItem>Content 1</AnimatedItem>
    <AnimatedItem>Content 2</AnimatedItem>
  </AnimatedChildren>
</AnimatedSection>

List with staggered items — use as="ul" on container and as="li" on items:

<AnimatedChildren as="ul" className="space-y-4">
  <AnimatedItem as="li">First item</AnimatedItem>
  <AnimatedItem as="li">Second item</AnimatedItem>
</AnimatedChildren>

Notes

  • All animations trigger once and start slightly before the element enters the viewport.
  • For detailed animation values, props, and customization options, see references/REFERENCE.md.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

PanchangaAPI — Vedic Astrology

Vedic astrology (Jyotish) REST API powered by Swiss Ephemeris. 24 endpoints: Panchanga, Kundali (300+ Yogas, Ashtakavarga, Doshas), KP system (249 sub-lords)...

Registry SourceRecently Updated
General

OPC Invoice Manager

Accounts Receivable light system for solo entrepreneurs. Manages the full billing lifecycle: invoice generation, collections follow-up, payment reconciliatio...

Registry SourceRecently Updated
General

NBA Tracker

提供NBA球队和球员赛程、实时比分及关键时刻提醒,支持追踪球员伤病和自动添加比赛到日历,适合观赛辅助。

Registry SourceRecently Updated
General

Okr Planner

OKR目标管理。OKR制定、季度复盘、上下对齐、评分、模板库、级联分解。OKR planner with goal setting, quarterly reviews, alignment, scoring, templates, cascading. OKR、目标管理、绩效。

Registry SourceRecently Updated