Block

Before/After

Compare two states of the same image with a divider between them. Show retouching, design iterations, or transformation work. Drag the handle, or use arrow keys.

GET THIS BLOCK - FREE

Media Block · Block 05 / 09

← All blocks
BEFORE / AFTER / LIVE
After: Grid reveal

Salt & Pine

Before: Static

Salt & Pine

Recreated for the web · ships as a native WordPress block

What you can control

AttributeWhat it doesDefault
data-initial-positionStarting divider position as percentage50
data-min-positionMinimum allowed divider position10
data-max-positionMaximum allowed divider position90

Accessible: Before/After slider is fully keyboard-operable (arrow keys) and touch-friendly. Screen reader announces position updates.