Skip to content
Awesome Reveal 1.0 is available, with one API for React, Vue, Astro and JavaScript. Read the release post.

Scroll reveal animations

Fade, slide, zoom and stagger elements as they scroll into view. One core with no dependencies runs in React, Vue, Astro and plain JavaScript.

See the demos

Fade in from any side

Choose top, right, bottom or left. The element fades in and slides 24 pixels from that side. You set one prop and write no CSS.

"top"
"right"
"bottom"
"left"
from
from

Your device asks for reduced motion, so the demo shows the content at once, with no animation.

<Reveal from="left">
<Card />
</Reveal>

Zoom, rotate and blur on scroll

Pass an object to set the start state. Mix opacity, offset, scale, rotation and blur. The entrance ends at full opacity and size, with no offset, rotation or blur.

yopacity: 0y: 40
scaleopacity: 0scale: 0.6
rotateopacity: 0rotate: -20
bluropacity: 0blur: 12
from

Your device asks for reduced motion, so the demo shows the content at once, with no animation.

<Reveal from={{ opacity: 0, scale: 0.6 }}>
<Card />
</Reveal>

Staggered animations in one line

Wrap a list in Cascade, and its children enter one after another. Set the gap with interval, in milliseconds. Use it for grids, menus, logos and feature lists.

interval

Your device asks for reduced motion, so the demo shows the content at once, with no animation.

<Cascade interval={40}>
{tiles.map((tile) => (
<Tile key={tile.id} {...tile} />
))}
</Cascade>

Reveal headings word by word

Wrap each word in an element, and Cascade reveals the words in order. Give them display: inline-block, because a transform does not move an inline box.

Every word gets its own entrance

Every word gets its own entrance

Every word gets its own entrance

interval

Your device asks for reduced motion, so the demo shows the content at once, with no animation.

<Cascade as="h2" interval={120}>
<span>Every</span> <span>word</span>{" "}
<span>gets</span> <span>its</span>{" "}
<span>own</span> <span>entrance</span>
</Cascade>

Your keyframes, native speed

Need a flip, a bounce or a 3D turn? Pass native Web Animations keyframes. The browser can run opacity and transforms off the main thread, so the motion stays smooth.

0rotatex -80deg
0.6rotatex 12deg
1rotatex 0deg
0scale0.3
0.6scale1.12
1scale1
0translate0 -80px
0.6translate0 8px
1translate0 0
keyframes

Your device asks for reduced motion, so the demo shows the content at once, with no animation.

<Cascade
keyframes={[
{ opacity: 0, rotate: "x -80deg", easing: "ease-out" },
{ opacity: 1, rotate: "x 12deg", offset: 0.6 },
{ opacity: 1, rotate: "x 0deg" },
]}
>
{cards}
</Cascade>

Trigger animations on demand

Not everything waits for a scroll. Set when to true to play the entrance, and to false to reset it. Connect it to tabs, steps, toasts or any state you own. Add hidden to hide the content from screen readers too.

<Reveal when={saved} hidden={!saved}>
<Toast>Changes saved</Toast>
</Reveal>

Know the moment it shows

Each reveal calls onReveal, also with reduced motion. Send an analytics event, load more data or start a counter, as this demo does. In Astro, listen for the reveal event.

0

reveals on this page so far

<Reveal onReveal={() => track("pricing_seen")}>
<Pricing />
</Reveal>

Accessible and SEO friendly by default

Each package does all four with no configuration. You get all of this, and a lot more, from a core of less than 2 kB with no dependencies.

  • SEO friendly

    Search engines and screen readers read all of your content. It is in the HTML before any animation plays.

  • No flicker on load

    With the React, Vue and Astro packages, content does not blink into view before its entrance. If the script fails, it shows after 5 seconds.

  • Respects motion settings

    Visitors who ask their device for reduced motion see the content at once, with no animation.

  • Fast and smooth

    Pages stay light, and the motion runs smoothly. The browser does the work with its own APIs, so no animation library ships to your visitors.

Start in under a minute

Pick your framework, install one package and wrap an element. Each package includes skills for AI agents. All four packages share the same core, the same entrance options and TypeScript types.

Terminal window
pnpm add @awesome-reveal/react
import { Reveal } from "@awesome-reveal/react";
export const Hero = () => (
<Reveal from="left">
<h1>Hello</h1>
</Reveal>
);
React scroll animations
Read the docs