Elementor Before After Slider: Free Image Comparison Setup, Mobile and Accessibility

Independently researched View as Markdown
Elementor before after slider showcase

“We renovated it” is a claim. A slider that lets visitors drag between the old room and the new one is proof. That is why renovation firms, retouchers and web studios put before/after comparisons on their best-performing pages.

This guide shows you how to build an Elementor before after slider for free with the Animation Addons Image Compare, a native Elementor 4 element. You get an image-prep checklist, six setup steps, a mobile drag test, keyboard and screen-reader support, a scroll-reveal recipe and industry layouts you can copy.

Quick Answer

To build an Elementor before after slider, install the free Animation Addons for Elementor plugin, turn on the Atomic Editor and drag Image Compare onto the page. Choose your Before Image and After Image, then set Direction, Initial Position (%) and Enable Click to Move. It works on Elementor Free, with touch, pen and keyboard.

What Is an Elementor Before After Slider?

A before after slider layers two photos and lets visitors drag a divider to reveal one over the other. The Image Compare from Animation Addons is an Elementor 4 Atomic Element that does this horizontally or vertically. Its images, divider, handle and labels are separate atomic children, so every part follows your Classes.

Key factDetail
PlanFree
Element typeNative Elementor 4 Atomic Element (composite)
Works withElementor Free and Elementor Pro, with the Atomic Editor on
Child elementsBefore Image, After Image, Divider, Handle (with Handle Icon), Before Label, After Label
SettingsDirection (Horizontal or Vertical), Initial Position (%), Enable Click to Move
PresetsHorizontal (applied on drop) and Vertical
InteractionMouse, pen and touch drag; optional click-to-jump; arrow keys through a labelled native range input
Page weightOne small script and stylesheet, no external slider library
VersionAnimation Addons 4.2.23, updated October 2026

Why Elementor 4 Needs an Addon for Before/After

Elementor ships no before/after element. The Image Compare page compares against Elementor Free 4.3.3, and the Elementor 4.4 release added List, Google Maps and Carousel, but no comparison slider. That leaves two choices: a classic Elementor 3 addon widget running inside the new editor, or a native Atomic Element.

A classic widget keeps its options inside one widget and does not use Elementor 4 Classes and Variables. The Image Compare is built from separate atomic children, so one Class can make every comparison on your site match.

Want to follow along? Download Animation Addons free; the Image Compare is in the free plugin.

Image Prep Checklist

Most broken comparisons come from mismatched photos, not from the slider. Before you upload:

Image prep checklist for an Elementor before after slider: same dimensions, framing, width, WebP and alt text
  • Same dimensions: export both photos at the same width and height so the divider lines up.
  • Same framing: shoot from the same spot and angle, or crop both to match.
  • Displayed width: a comparison loads two images, so export at the width they are shown, not camera size.
  • A compressed format: WebP keeps both files light.
  • Alt text: write it in the Media Library; the comparison uses it.
  • Same image size: pick the same size for the Before Image and After Image children.

How the Image Compare Is Built

The parent Image Compare holds three settings: Direction, Initial Position and Enable Click to Move. Inside it sit six parts you can select in the Navigator and style on their own.

Image Compare structure: Before Image, After Image, Divider, Handle with Handle Icon, Before Label and After Label

How to Create a Before After Slider in Elementor: Step by Step

Six steps to add a before after slider in Elementor with the Image Compare

Step 1: Install the plugin

Install Animation Addons for Elementor from WordPress.org and open a page with the Atomic Editor on.

Step 2: Drag Image Compare onto the canvas

Drag Image Compare onto the canvas. It lands with the Horizontal preset and sample photos, so you can see it working straight away.

Step 3: Pick a preset (optional)

Open Apply Preset and choose Vertical if your photos are tall. Otherwise keep Horizontal.

Step 4: Add your photos

Select Before Image in the Navigator and choose your first photo, then select After Image and choose the second. Use two images with the same dimensions.

Step 5: Set the behavior

  • Direction: Horizontal for a left-right split, Vertical for top-bottom. Cursor and handle orientation follow.
  • Initial Position (%): where the divider starts, from 0 to 100. Lead with the image you want seen first.
  • Enable Click to Move: on, a click jumps the divider to that spot. Off, only drags move it.

Step 6: Style the labels and handle, then publish

Rename the Before Label and After Label, for example “March” and “July”, or delete them. Swap the Handle Icon for your own SVG, style the divider, preview on mobile and publish. The labels fade when the divider gets close, so they never sit on top of the handle. New to Classes? Read Classes and Variables explained.

Before after slider demo: dragging the handle, moving it with arrow keys, then switching to the Vertical preset.

Horizontal or Vertical?

Horizontal and vertical Elementor before after slider examples side by side
DirectionBest for
Horizontal (default)Wide rooms, cars, products and landscapes
VerticalTall portraits, phone screenshots and full-page website captures

Mobile Drag Test

The Image Compare responds to touch and pen drags. Run this test on a real phone before you publish:

  1. Open the published page on your phone.
  2. Drag the handle left and right (or up and down) with one finger.
  3. Scroll past the slider and check that a light tap does not jump the divider.
  4. If it does, turn off Enable Click to Move, so only deliberate drags count.
  5. Check that both labels stay readable at phone width, or delete them.

Accessibility: Keyboard and Screen Readers

Most before/after tutorials skip this. The Image Compare is built on a native range input labelled “Move image comparison slider”:

  • Keyboard: press Tab to reach the slider, then the arrow keys to move the divider.
  • Screen readers: the control is announced as a slider.
  • Images: both photos use the alt text you set in the Media Library.
  • Text: add a short caption or paragraph that describes the change, so people who cannot see the images still get the point.
The Elementor before after slider works with touch, pen, keyboard and screen readers

Reveal the Comparison on Scroll

To make the comparison appear as visitors scroll to it, add the Regular Animation extension (Animation Addons Pro) to the Image Compare and pick an entrance effect such as a fade or slide-up. In a row of comparisons, give each a small delay so they appear one by one, as in the staging demo on the product page.

Regular Animation animates how the whole element enters the page. Image Compare has no setting that sweeps the divider automatically.

Before and After Layouts by Industry

Before and after slider layouts for renovation, retouching, website redesign, staging, upholstery and dental clinics
IndustryLayoutSettings
Renovation and interiorsProject page with the slider beside the project summaryHorizontal preset, Initial Position 50, labels as rounded pills
Photo retouchingRaw file above, edit below, next to the priceVertical preset, Initial Position 30 so most of the edit shows first
Website redesignOld site against new, in a Flexbox with a Heading and ParagraphEnable Click to Move off; Tilt extension (Pro) optional
Home stagingThree comparisons in an Elementor 4 GridOne shared Class for divider and handle; Regular Animation (Pro) optional
Upholstery and restorationWorn and restored chair beside a quote buttonHorizontal preset, Initial Position 45, renamed labels
Dental and cosmetic clinicsSmile results with dated labelsLabels renamed to the visit months; caption with treatment details

The first five follow demos on the Image Compare page; the dental layout is an example idea. Need the rest of the site? Browse the Elementor V4 templates or the full starter template library.

Elementor Before After Slider Options Compared

Comparison of before/after options in Elementor 4: Elementor alone, a classic addon widget and the Animation Addons Image Compare

For other image effects, see how to add image animation in WordPress, how to create an image accordion and the best image animation plugins for WordPress. To pair the slider with other elements, see the best Elementor 4 widgets. For a full tour of Elementor 4 elements, read the complete guide to Elementor V4 Atomic elements.

Can Search Engines See Both Images?

Yes. Both photos are ordinary image elements in the page HTML, with the alt text you set in the Media Library, so search engines and AI crawlers read them like any other image. Add a short caption or paragraph next to the comparison so the change is described in text too.

Is the Image Compare Free?

Yes. The Image Compare, its labels and its handle are in the free plugin and work on Elementor Free. Only the extras shown in Pro demos (Tilt, Regular Animation and Text Animation) need Animation Addons Pro. See Elementor 4 Free vs Pro for what else is free in the Atomic Editor.

Show the Change, Not Just the Result

A free, native Elementor 4 before after slider with horizontal and vertical presets, touch and keyboard support, and labels and a handle you style with Classes.

Download Animation Addons Free Try the Live Demo

Final Thoughts

An Elementor before after slider turns a claim into something visitors can check for themselves. Prepare two matching photos, drag Image Compare onto the page, add the photos, set Direction, Initial Position and Enable Click to Move, then style the labels and handle.

Test the drag on a real phone, confirm the arrow keys move the divider, and write a short caption that describes the change. Then reuse one Class across every comparison so your project pages stay consistent, and update the photos as each new project finishes.

FAQs

How do I add a before after slider in Elementor?

Install the free Animation Addons for Elementor plugin and drag the Image Compare element onto your page. Choose your Before Image and After Image, set Direction and Initial Position, and publish.

Can I make a vertical before after slider in Elementor?

Yes, set Direction to Vertical or apply the Vertical preset, and the divider moves up and down. This suits tall portraits, phone screenshots and full-page website captures.

What size should before and after images be?

Both photos should share the same dimensions and framing so the divider lines up. Export them at the width they are shown, not camera size, because the comparison loads two images.

Does the before after slider work on mobile?

Yes, it responds to touch and pen drags on phones and tablets. Turn off Enable Click to Move if taps while scrolling jump the divider.

Can keyboard users operate the slider?

Yes, it is built on a native range input labelled “Move image comparison slider”. Keyboard users Tab to it and move the divider with the arrow keys, and screen readers announce it as a slider.

How do I stop the slider jumping on click?

Turn off Enable Click to Move in the Image Compare settings. Visitors then move the divider only by dragging.

Can I change the Before and After labels or handle?

Yes, Before Label and After Label are separate text elements you can rename or delete. The Handle holds a Handle Icon you can replace with your own SVG.

Is the Elementor image comparison slider free?

Yes, the Image Compare is free and works on Elementor Free with no Elementor Pro. Only the Pro demo extras, Tilt, Regular Animation and Text Animation, need Animation Addons Pro.

Is there a before and after slider in Elementor 4 itself?

Not in core: Elementor ships no before/after element, including in the 4.4 release. The Image Compare adds one as a native Atomic Element that uses your Classes and Variables.

Can search engines see both images in the slider?

Yes, both photos are ordinary image elements in the page HTML with the alt text you set. Add a short caption so the change is described in text too.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Build it faster with Animation Addons

40+ atomic elements, 25+ extensions and 700+ templates, built natively for Elementor v4. Free version available.