Opens in a new tab
Rabin-CraftWordPress Plugin
Buy now
Interactions
Element 28 of 30

Before / After

Two images in one frame with a draggable divider, keyboard-friendly, with a hint swipe when it first appears.

Live demo · move your mouse over it

After
Before

What it does

A comparison slider: the "after" image fills the frame and the "before" image is revealed up to a divider the visitor drags (or moves with the arrow keys; it is a real range input). Labels sit in the corners, and when it first comes into view the divider sweeps once to show it can move. Without images it shows two placeholder panels. Best for redesigns, retouching, renovations and data before/after.

Add it to a page

1

Bricks

Search the elements panel for Before / After (mkit-before-after) and drag it in.

2

Shortcode

Paste [mkit_before_after] into any editor or builder.

3

AI agent

Ask an agent to use rabin-craft/add-to-page with element before-after.

[mkit_before_after]
[mkit_before_after before="https://example.com/old.jpg" after="https://example.com/new.jpg" before_alt="The old homepage" after_alt="The redesigned homepage"]

Included in every plan

Before / After plus 29 more elements, updates and support.

Buy nowSee all plans

Settings

The same settings work in Bricks, in shortcode attributes and through the abilities.

Setting Type / options Default What it does
before string — Image URL for the before state.
after string — Image URL for the after state. Use the same size and framing as before.
before_alt string — Describe what the before image shows.
after_alt string —
before_label string Before
after_label string After
start number (0–100) 50 Starting divider position, % from the left.
ratio 16/10 · 16/9 · 4/3 · 1/1 · 3/4 16/10
hint boolean true Sweep the divider once when it first appears.
caption string —
theme dark · light dark Colour scheme. "dark" is designed for night/navy sections, "light" for white or pale sections.

Get the full kit

All 30 elements, one licence.

From ₹1,499 a year. Secure checkout on shop.rabinpal.com.