Self Sweeping ComparePRO

Before and after comparison that plays itself: the seam walks from edge to edge on a timer, clicking the picture freezes it at that point, and a single round control resumes or holds the sweep between the two captions.

Reveal10: Self Sweeping Compare

A comparison that plays itself: the seam walks from edge to edge and turns around, and clicking anywhere on the picture freezes it exactly where you want to look. One round control between the two captions puts the sweep back on.

Upgrade to Pro

Pro blocks install through the shadcn CLI with your license key and ship their full source. Docs and live previews stay open to everyone, so you can read every block's details first.

Upgrade Now

Installation

Swap YOUR_EMAIL and YOUR_KEY for the email and license key on your account. Find your license key on your account page.

Radix flavor

bash
npx shadcn add "https://ui.beste.co/r/reveal10?email=YOUR_EMAIL&license_key=YOUR_KEY"

Base UI flavor

bash
npx shadcn add "https://ui.beste.co/r-base/reveal10?email=YOUR_EMAIL&license_key=YOUR_KEY"

This installs the block to components/beste/block/reveal10.tsx plus the badge7 eyebrow it uses.

Quick start

The installed file exports reveal10Demo alongside the block: the exact props behind the preview above. Spread it to get a working comparison in one line.

tsx
import { Reveal10, reveal10Demo } from "@/components/beste/block/reveal10";

export default function Page() {
  return <Reveal10 {...reveal10Demo} />;
}

Then replace the demo with your own props. Written out, a trimmed setup looks like this:

tsx
import { Reveal10 } from "@/components/beste/block/reveal10";

export default function Page() {
  return (
    <Reveal10
      badge={{ label: "Wipe it across" }}
      heading="The shelf redesigns itself while you watch."
      description="The seam sweeps on its own. Click the picture to stop it."
      duration={7}
      before={{
        src: "/packaging/old.jpg",
        alt: "Unbranded paper packaging",
        label: "2019",
        caption: "Six colours, four typefaces, unreadable at arm's length.",
      }}
      after={{
        src: "/packaging/new.jpg",
        alt: "Minimal coffee packaging",
        label: "Today",
        caption: "One ink, uncoated stock, origin on the face of the bag.",
      }}
      labels={{
        playLabel: "Let the seam sweep",
        pauseLabel: "Hold the seam still",
        frameLabel: "Click to stop the sweep",
      }}
    />
  );
}

Props

PropTypeDefaultDescription
badge{ label: string }Eyebrow label rendered as a Badge7
headingstringSection heading in the left header column
descriptionstringSupporting paragraph in the right header column
beforeCompareImageThe image revealed to the left of the seam
afterCompareImageThe image revealed to the right of the seam
durationnumber7Seconds for one full sweep across the frame
labelsReveal10Labels{}Fixed strings that are not content: the play, pause and frame labels
classNamestringExtra classes for the outer <section>
ts
type CompareImage = {
  src: string;
  alt: string;
  label: string;
  caption: string;
};

type Reveal10Labels = {
  playLabel?: string;
  pauseLabel?: string;
  frameLabel?: string;
};

Behavior notes

More Reveal blocks

View all Reveal
PRO

reveal6

Drag Compare Slider

Before and after comparison where a pointer-driven handle clips the earlier photograph over the later one, with pill labels on both corners and a ruled row of outcome figures beneath.

PRO

reveal7

Segmented State Compare

Two versions of the same object compared through a segmented pill control: the photographs cross-fade in place while the title, explanation and ruled note list swap beside them.

FREE

reveal1

Before/After Image Slider

Interactive image comparison component with a draggable divider supporting horizontal and vertical orientations. Perfect for showcasing transformations, photo editing results, or design improvements.

PRO

reveal12

Tile Flip Compare

Two photographs split across the same grid so each square can be flipped from before to after on click, with buttons to turn the whole frame over and a counter of how much has been revealed.

PRO

reveal9

Spotlight Lens Compare

Before and after comparison seen through a draggable circular lens: the earlier photograph fills the frame while the later one shows only inside the circle, which follows the pointer or the arrow keys.

PRO

reveal11

Diagonal Peel Compare

Comparison that lifts diagonally instead of wiping straight: dragging the corner handle shrinks a triangular clip on the covering photograph to expose the one underneath, with notes on what changed.

Markdown version