Motion

Reveal

The entrance every card shares: it rises 14px and fades in once on screen. Staggers lists by index, capped at six.

view .md
Preview
one
two
three
Installation
terminal
bash
npx @entrepta/cli@latest add reveal

// Resolves dependencies, copies the source, and installs npm packages automatically.

Usage
reveal.tsx
tsx
import { Reveal, useReveal } from "@/components/entrepta/reveal"
import { motion } from "motion/react"

{posts.map((post, i) => (
  <Reveal key={post.slug} index={i}>
    <Card>…</Card>
  </Reveal>
))}

// on your own motion element
<motion.div {...useReveal(0.1)}>…</motion.div>
Props
PropTypeDefaultDescription
indexnumber0Position in a list, for the stagger
delaynumber0Seconds before the entrance
stepnumber0.06Seconds between list items
Active theme: entrepta, dark mode.