Media widget

Before / After

Drag a divider to compare two images: before and after, draft and final. Works with the keyboard too.

Build it with your AI

“Add a before / after slider of the draft and the finished design.”

Live demo

See it working

This is the real widget, not a picture

Illustration of the Uncoder editor with a selected heading on the live canvas

Settings

29 settings in three tabs

Every setting below is in the editor — and available to your AI through get_widget_schema.

Content

12 settings

Images

Before image

After image

Resolution

Before label

After label

Show labels

Labels position

Orientation

Initial position

Follow the mouse

Handle icon

Aspect ratio

Design

17 settings

Image

Border radius

Border

Shadow

Handle

Line color

Line width

Handle size

Handle background

Handle icon color

Handle radius

Handle border

Handle shadow

Labels

Typography

Color

Background

Padding

Border radius

Distance from edge

Behaviour

shared

On every element

Spacing & position

Background & border

Animations

Motion & effects

Scroll & mouse effects

Visibility

Conditions

Interactions

Attributes & CSS

Build it with AI

Just describe what you want

Your AI looks up the Before / After settings over MCP and writes the element for you — real, editable and on brand.

Claude · connected to your site

You

Add a before / after slider of the draft and the finished design.

Claude · using Uncoder

Done — it’s on your site and fully editable.

  • Before / After added where you asked
  • Styled with your Design System
  • Checked on tablet and mobile
  • get_widget_schema
  • edit_elements
  • audit_page

What the AI writes

image-compare.jsonJSON
{
  "type": "image-compare",
  "settings": {
    "before_image": { "id": 152 },
    "after_image": { "id": 41 },
    "before_label": "Draft",
    "after_label": "Designed"
  }
}

Free · GPL · No account

Your next site is one prompt away

Install Uncoder, connect your AI and describe what you want. Every page it builds stays yours to edit.