Stamp Reveal
Scroll-triggered entrance that stamps content onto the page: drops from above at 125% scale with a tilt and snaps into place in three hard steps. Stagger with delay, optional final tilt.
brutalist/effect/stamp-revealSource
"use client";
import type { ReactNode } from "react";
import { motion, useReducedMotion, type Variants } from "motion/react";
import { cn } from "@/lib/utils";
export interface StampRevealProps {
children: ReactNode;
/** Delay before the stamp (s). Use it to stagger siblings. */
delay?: number;
/** Final tilt in degrees (0 = straight). */
rotate?: number;
/** Replay every time the element re-enters the viewport. */
repeat?: boolean;
/** Portion of the element that must be visible to trigger (0–1). */
amount?: number;
as?: "div" | "section" | "li" | "article";
className?: string;
}
/**
* Scroll-triggered entrance that "stamps" content onto the page: it drops from
* slightly above at a larger scale, then snaps into place in 3 hard steps.
*/
export function StampReveal({ children, delay = 0, rotate = 0, repeat = false, amount = 0.4, as = "div", className }: StampRevealProps) {
const reduce = useReducedMotion();
const Component = motion[as];
const variants: Variants = {
hidden: { opacity: 0, scale: 1.25, rotate: rotate - 6, y: -24 },
shown: {
opacity: 1,
scale: 1,
rotate,
y: 0,
transition: { delay, duration: 0.32, ease: (t: number) => Math.ceil(t * 3) / 3 },
},
};
// With reduced motion, `initial={false}` renders the final state immediately (same markup, no hydration mismatch).
return (
<Component
className={cn("will-change-transform", className)}
variants={variants}
initial={reduce ? false : "hidden"}
whileInView="shown"
viewport={{ once: !repeat, amount }}
>
{children}
</Component>
);
}
export default StampReveal;
modules/brutalist/effect/stamp-reveal/index.tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| children* | ReactNode | — | Content to reveal. |
| delay | number | 0 | Delay in seconds (stagger siblings with i * 0.15). |
| rotate | number | 0 | Final rotation in degrees. |
| repeat | boolean | false | Replay on every viewport entry. |
| amount | number | 0.4 | Visible ratio needed to trigger. |
| as | "div" | "section" | "li" | "article" | "div" | Rendered element. |
| className | string | — | Classes on the wrapper. |
Other transition variants in Brutalist
Flip Reveal
Scroll-triggered 3D flip: the element swings in on its top or left hinge like a hanging sign board and lands in four hard steps. Stagger siblings with delay.
Slam List
Staggered list entrance: every child slams in from the side or bottom with a tilt and a stiff spring jolt, one after another, when the list scrolls into view. Wraps each child in an li (or div).
Wipe Reveal
Scroll-triggered block wipe: a solid DA color slab with ink edges sweeps across the element, the content appears underneath at mid-sweep, then the slab exits the other side. Left, right or up.
Transition in other art directions
Cascade Cards
Scroll-triggered cascade: each child drops in from above with a 3D forward tilt and a soft spring, one after the other — ideal for notification or feed lists.
Circle Reveal
Scroll-triggered circular reveal: content appears through a clip-path circle growing from a chosen origin point while going from blurred to sharp.
Glass Reveal
Scroll-triggered entrance for frosted panels: slides in from bottom/left/right, scales up from 96% with a soft overshoot while the content goes from 14px blur to sharp. Optional built-in glass panel.
Scroll Zoom
Scroll-linked product showcase: as the element rises through the viewport it scales from 82% to 100%, un-tilts from 18° and fades in (motion useScroll).
Clip Reveal
Scroll-triggered clip-path reveal (from bottom, top, left, right or center) with a subtle scale settle and fade — ideal for screenshots, product mock-ups and cards.
Fade Blur Reveal
Scroll-triggered entrance where opacity, an 8px rise and a 6px blur resolve together with an expo-out curve. Single block or staggered children.
Stagger Grid
Grid entrance where children fade, rise and un-blur one by one in reading order or as a diagonal wave from the top-left when the grid scrolls into view.
Word Reveal
Scroll-triggered headline reveal: each word rises out of its own clipping mask with an expo-out ease, staggered word by word. Works for h1–h3 and paragraphs.
Curtain Wipe
Block reveal: a solid ink (or signal) curtain covers the content, then slides away to the right, uncovering it — for images and cards entering the viewport.
Inset Reveal
Image entrance: a clip-path inset shrinks from 12% to 0 while the inner content scales from 1.15 to 1 — the frame “opens” onto the image. Observed on an unclipped wrapper.
Line Reveal
Headline revealed line by line: each line slides up from behind its own mask with a sharp ease, staggered, when it enters the viewport — the classic editorial reveal.
Stagger Fade
The quietest entrance: list items simply fade in one after another (no movement), 60ms apart, when the list enters the viewport.
Fade Up
The workhorse scroll entrance: content fades in and rises 16px with a quick ease-out when it enters the viewport. Instant with reduced motion.
Scale In
Product-shot entrance: content scales up from 0.94 (optionally from a slight perspective tilt) and fades in with a gentle ease when it enters the viewport.
Stagger Grid
Responsive grid whose items fade + rise in sequence (row by row, left to right) when the grid scrolls into view; a subtle scale from 0.98 keeps it crisp.
Wipe Reveal
Reveal for images, charts and mockups: a primary bar sweeps across, then the content is unveiled with a clip-path wipe (left→right or bottom→top) on scroll into view.
Arch Reveal
Media reveal through an opening arch: a clip-path ellipse grows from the bottom center until the content is fully shown, leaving an arch-topped frame.
Bloom Stagger
List that blooms open: items fade in one by one while unrotating from a slight alternate tilt and rising, like petals settling, when the list enters the viewport.
Grow In
Sprouting entrance: content grows from 85% scale out of its bottom edge while fading in, with a soft organic overshoot, when it enters the viewport.
Soft Blur In
Dreamy entrance: content comes into focus from a soft blur while fading in and drifting up a few pixels — like morning mist lifting.
Blob Reveal
Reveal where an organic pastel blob springs up behind the content with a slight rotation, then the content fades up on top of it.
Pop In
Scroll-triggered pop: content scales up from 80% with a friendly spring overshoot while fading in; stagger siblings with delay.
Rise Stagger
List entrance: each child rises 24px and fades in one after another with a soft spring bounce when the list scrolls into view.
Swing In
Playful entrance: the element swings in from a side with a rotation like a hanging sign and settles with a springy wobble.