Before / after slider · for Framer

Reveal the
difference.

A before/after comparison slider that moves like paper over paper. One-frame drag, scroll-safe touch, full keyboard control and up to three pairs.

Coastal Villa, before: an empty coastal hillside above the sea
Coastal Villa, after: the finished villa on the same hillside

Fig. 01 — Coastal Villa, site and finished house

Drag · tap · arrow keys

Drag

1 frame

Painted with requestAnimationFrame. No re-renders while you move.

Touch

Scroll-safe

Vertical swipes scroll the page. Sideways swipes compare.

Tap

Glide

Tap anywhere and the divider glides there.

Keyboard

← →

Arrows, Shift for bigger steps, Home and End.

Dependencies

0

Nothing beyond React and Framer.

02 — Playground

Every setting,
live.

The panel drives the real component with the same props you get in Framer’s properties panel. Change one and its value shows over the preview.

Coastal Villa before
Coastal Villa after
PairCoastal Villa
Project
Pairs

03 — Handles

Three handles.
Two directions.

A circle, a pill or a bare line. Run it left to right, or top to bottom for tall images and interiors.

Forest Pavilion, before: a forest stream with no building
Forest Pavilion, after: a timber pavilion built over the stream

Circle handle

Forest Pavilion

Cliffside Retreat, before: the original cliffside house at sunset
Cliffside Retreat, after: the rebuilt retreat with a long cantilevered roof

Pill handle

Cliffside Retreat

Hillside House, before: a bare hillside overlooking the bay at sunset
Hillside House, after: a concrete house on the same hillside

Line handle

Hillside House

Wabi Residence, before: the living room before the redesign
Wabi Residence, after: the redesigned living room in warm plaster and oak

Vertical

Wabi Residence

04 — Series

Three pairs.
One slider.

Group up to three comparisons in one component. Arrows step through them, with an optional label and counter underneath.

Each pair has its own before, after and label

The divider glides back to its start on every change

Empty pairs are skipped automatically

Meditation Studio, before: the old stone building
Meditation Studio, after: the renovated meditation studio
Meditation Studio1/3

05 — CMS

Bind it to
your CMS.

Every image is a normal image property, so it binds to CMS fields like any other layer. Drop Reveal into a Collection List and each item gets its own comparison.

Cliffside Retreat: the site before the residential project
Cliffside Retreat: the finished residential project

Cliffside Retreat

Residential

Forest Pavilion: the site before the residential project
Forest Pavilion: the finished residential project

Forest Pavilion

Residential

Wabi Residence: the site before the hospitality project
Wabi Residence: the finished hospitality project

Wabi Residence

Hospitality

Hikari Boutique: the site before the commercial project
Hikari Boutique: the finished commercial project

Hikari Boutique

Commercial

Live from this site’s own Projects collection: four of its eight items, each one a Reveal bound to the Before and After fields.

06 — Built in

Small details,
done properly.

Everything here is in the one file you install. No settings to switch on, nothing extra to load.

01

One-frame drag

Dragging writes a single CSS variable once per frame. React stays out of the way, so the divider never lags behind your hand.

02

Scroll-safe touch

On phones a vertical swipe scrolls the page and a sideways swipe compares. Nobody gets stuck on your slider.

03

Tap to glide

Tap or click anywhere on the image and the divider glides to that point with a soft ease.

04

Keyboard and screen readers

A real slider role with live values. Arrow keys, Shift for bigger steps, Home and End.

05

Images stay put

No drag ghosts, no long-press menus and no accidental selection, on desktop or iOS.

06

Make it yours

Handle style and size, divider width, colours, labels, hint text, corner radius and shadow.

07 — FAQ

Questions,
answered.

The short version of what Reveal does, how it fits into Framer and what it asks of your site.

What is Reveal?

How do I add Reveal to my Framer site?

Can I connect Reveal to the Framer CMS?

Does Reveal work on phones?

Is Reveal accessible?

Can one slider show more than one comparison?

Will Reveal slow down my site?

08 — Install

Drop it in.
Drag it.

One file. Paste it into your project, pick two images, publish.

Get Reveal

React and Framer only · No dependencies

Hillside House, before: a bare hillside overlooking the bay at sunset
Hillside House, after: a concrete house on the same hillside

Reveal

A before/after comparison slider for Framer.

© 2026 Reveal. Made by Josep de Villaret.
Contact: josepponsmataro@gmail.com

Create a free website with Framer, the website builder loved by startups, designers and agencies.