---
title: "How to Create a Before After Image Slider in Elementor (Step by Step)"
url: https://theplusaddons.com/blog/before-after-image-slider-elementor/
date: 2026-07-01
modified: 2026-11-15
lang: en
author: "Aditya Sharma"
description: "Some photos only make sense next to what they replaced. A whitened smile, a cleaned car seat, a room halfway through a renovation, a landing page before and after a..."
image: https://theplusaddons.com/wp-content/uploads/2026/11/1794719811-before-after-image-slider-elementor-featured-1024x538.webp
word_count: 2264
---

# How to Create a Before After Image Slider in Elementor (Step by Step)

## 

- The Plus Addons for Elementor uses the Before After widget to build a comparison slider in Elementor, and the guide says the free version of Elementor is enough while Before After is a Pro widget.
- Before After supports three styles, Horizontal, Vertical, and Opacity, with Horizontal for wide images like rooms or website screenshots, Vertical for tall images like portraits or phone screens, and Opacity for changes in colour, light, or tone.
- The widget lets users set Image for Before and Image for After from the Media Library, add optional labels such as "Before" and "After", and choose Image Resolution, which defaults to Full.
- Separator Line controls several divider settings, including Alignment, Full Width, Mouse Hover option, Separator Style, Separator Width up to 30 px, Separator Color, Separator Icon, and Separator Position at 50% by default.
- Image prep matters because both files need identical dimensions and framing, the same spot and angle help the result line up, WebP is recommended for compression, and mobile testing checks thumb control plus short alt text.

Some photos only make sense next to what they replaced. A whitened smile, a cleaned car seat, a room halfway through a renovation, a landing page before and after a redesign. Put the two images side by side and the reader has to glance back and forth and guess what changed. Stack them in one frame with a handle that wipes between them, and the change shows itself in a single motion.

That is a before after image slider. This guide shows how to build one in Elementor with the [Before After widget](https://theplusaddons.com/elementor-widget/before-after-slider/) in The Plus Addons for Elementor, what every setting does, and the image preparation that decides whether the result looks sharp or broken.

Every setting name below was checked against the Before After widget code on 15 November 2026. The demo screenshots come from our live demo page.

Table Of Contents

## What a Before After Image Slider Is

A before after image slider, also called an image comparison slider, places two images of the same size in the same frame, one on top of the other. A divider sits between them. Move it, and more of one image appears while the other is covered. The comparison turns into something the visitor controls, which is why it holds attention better than two static pictures.

It earns its place wherever the value of your work lives in the difference between two states:

- **Photo editing and retouching**, where the edit is the whole pitch.

- **Real estate, interior design and renovation**, showing a room or a facade before and after the work.

- **Dental, skincare and cosmetic clinics**, where results sell the treatment.

- **Cleaning and detailing services**, such as car valeting, carpet cleaning or pressure washing.

- **Web and product design**, comparing an old layout with a redesign.

- **Landscaping and construction**, with the same view shot weeks apart.

![Dental website demo with a thin white divider line across a before and after smile](https://theplusaddons.com/wp-content/uploads/2024/07/Dental-Website-Vertical-Before-and-After-Comparison.webp)

## Ways to Add a Before After Slider in Elementor

To get a comparison slider into an Elementor page you have three routes:

- **A widget from an Elementor addon you already use.** Some addon packs include one. It adds no extra plugin and is styled in the same panel as the rest of your page.

- **A single-purpose plugin.** Fine if comparison sliders are the only extra you need, but it is one more plugin to update. Our roundups of [WordPress before after slider plugins](https://theplusaddons.com/blog/wordpress-before-after-slider-plugins/) and [the best before after slider plugins](https://theplusaddons.com/blog/best-wordpress-before-after-slider-plugins/) compare the options.

- **Custom code.** A small JavaScript library and some CSS can do it, but you own the maintenance, the touch support and the accessibility from then on.

Our honest take: if you already run an addon pack, use its widget instead of stacking another plugin. The rest of this guide uses the Before After widget in The Plus Addons for Elementor.

## What You Need

| You need | Notes |
| -------- | ----- |
| Elementor | The free version is enough |
| The Plus Addons for Elementor Pro | Before After is a Pro widget, so the free plugin from WordPress.org alone does not include it |
| Two images | Same pixel size, same framing, ideally WebP |
| Alt text for both images | Set it in the Media Library before you start |

## How to Create a Before After Image Slider in Elementor

### Step 1: Turn On the Before After Widget

The Plus Addons for Elementor only loads the widgets you switch on. In your WordPress dashboard, go to The Plus Addons > Widgets, search for "Before After" and turn it on.

### Step 2: Add the Widget and Pick a Style

Open your page with Elementor, search the widget panel for "Before After" and drag it into your layout. In the Content tab, the first choice is Style, shown as three visual options:

| Style | How it compares | Works best for |
| ----- | --------------- | -------------- |
| Horizontal (default) | The divider moves left and right | Wide images: rooms, cars, website screenshots |
| Vertical | The divider moves up and down | Tall images: portraits, phone screens, buildings |
| Opacity | No divider line: as the pointer moves across the image, the Before image fades out to reveal the After image | Changes in colour, light or tone across the whole image |

### Step 3: Add the Images and Labels

Set Image for Before and Image for After from your Media Library. Add Label for Before and Label for After if you want small text badges on each side, such as "Before" and "After" or "Original" and "Edited". Leave a label empty and no badge is shown.

Below the images, Image Resolution sets which size WordPress serves. It defaults to Full. Pick a smaller registered size if your originals are much bigger than the space on the page.

Both image fields and both labels accept dynamic tags. On a case study or project post type, you can fill the images from custom fields so every project shows its own comparison from one template. See our guide to [ACF repeater fields in Elementor](https://theplusaddons.com/blog/acf-repeater-elementor/) for more on building pages from custom fields.

### Step 4: Set the Divider and Interaction Options

Switch to the Style tab and open Options. These settings decide how the slider behaves:

| Setting | What it does | Default |
| ------- | ------------ | ------- |
| Alignment | Places the slider left, center or right in its column | Left |
| Full Width | Lets the slider fill the width of its container | Off |
| Mouse Hover option | Moves the divider as the pointer moves over the image | On |
| Separator Line | Shows a visible divider line (Horizontal and Vertical styles only) | Off |
| Separator Style | Middle or Bottom | Middle |
| Separator Width | Line thickness, 0 to 30 px | 3 px |
| Separator Color | Colour of the line | Black |
| Separator Bottom Bg Color | Background of the bottom bar when Separator Style is Bottom | Light grey, semi-transparent |
| Separator Icon | An image used as the handle on the line | None |
| Separator Position | Where the divider starts, in percent | 50% |

Two things trip people up here. First, the other separator settings stay hidden until you turn on Separator Line, and Separator Line itself is hidden in the Opacity style. Second, Mouse Hover option is on by default. If you prefer the divider to stay put until a visitor interacts with it on purpose, turn it off and test the result.

![Before After widget with the handle moved by mouse hover on a car seat cleaning demo](https://theplusaddons.com/wp-content/uploads/2026/11/1794719859-before-after-slider-hover-reveal-live-demo.webp)

A Separator Icon makes the line read as something you can grab. A simple round icon with two arrows, like the one in the vertical demo below, does the job. If you use your own SVG icon and want to recolour it, our guide on [colouring custom SVG icons in Elementor](https://theplusaddons.com/blog/how-to-color-custom-svg-icons-in-elementor/) explains how.

![Before After widget in the Vertical style with a round separator icon on a dermatology demo](https://theplusaddons.com/wp-content/uploads/2026/11/1794719907-before-after-slider-vertical-style-live-demo.webp)

### Step 5: Style the Labels

Open Label Options in the Style tab. You can set Padding, Typography, Label Color, Background, Border, Border Radius and Box Shadow. The labels sit on top of your photos, so legibility beats decoration: give them enough padding and a background solid enough to stay readable on a busy image. Keep the words short.

### Step 6: Preview, Publish and Test

Preview the page, move the divider, then publish. Open the live page on a phone and a desktop and check that the comparison reads clearly on both. That is the full build, with no custom code.

## Three Real Examples and What They Teach

Our [Before After demo page](https://etemplates.wdesignkit.com/theplusaddons/before-after-image-slider/) shows three layouts built with the widget. Each makes a different design choice worth copying.

### Dental Website: Horizontal With a Thin Line

The smile comparison above uses the Horizontal style with a thin white line. The images are cropped identically, so the only thing that changes is the teeth. A short heading, "See the Difference: Smile Enhancements", tells the visitor what to look for.

### Dermatology Clinic: Vertical With an Icon

A portrait works better with a top to bottom wipe, so this demo uses the Vertical style and a round handle icon. Text sits on the left, the comparison on the right, and a single booking button follows the proof.

![Dermatology clinic demo with a vertical before after comparison next to a short text block and a Book Now button](https://theplusaddons.com/wp-content/uploads/2024/07/Horizontal-Elementor-Before-and-After-Slider.webp)

### Car Wash Service: Dark Section, Bold Result

The car seat demo puts the comparison on a black background, so the clean leather stands out, with a white line and a pill-shaped handle. The demo has Mouse Hover option on, so the divider follows the pointer as soon as it moves over the image, as in the screenshot earlier in this guide.

![Car wash service demo with a before after comparison of a dirty and a clean car seat on a black section](https://theplusaddons.com/wp-content/uploads/2024/07/Car-Wash-Service-Before-After-Image.webp)

## Where to Put a Comparison on Your Page

A before after slider is proof, so place it where a visitor is deciding whether to believe you. A few placements that work:

- **Right after the claim it proves.** If a service page says "we restore worn leather", the comparison belongs directly under that sentence, not three sections later.

- **Next to the call to action.** The dermatology demo pairs the comparison with a single booking button. Proof and action sit in the same view.

- **On case study pages.** One comparison per project, followed by a short paragraph on what was done and how long it took.

- **On landing pages for one offer.** One strong comparison near the top often does more than a long feature list.

Show one comparison per idea. Three sliders in a row compete with each other, and visitors rarely move all three. If you have many results to show, pick the clearest one for the slider and put the rest in a gallery or a carousel further down the page.

Think about the starting position too. With Separator Line on, Separator Position decides where the divider sits before anyone touches it. The default of 50% shows half of each image, which works for most pairs. If the change sits on one side of the photo, move the start so that the visitor sees the most telling part first.

## Image Prep That Makes or Breaks the Slider

Most broken comparison sliders are image problems, not widget problems. Before you upload:

- **Use identical dimensions.** Crop both images to the same width and height. If the sizes differ, one image will not line up with the other when the divider moves.

- **Shoot from the same spot.** Same angle, same distance, same lens. A different camera position makes the result look staged.

- **Match the light where you can.** If only the lighting changed, try the Opacity style, which fades one image into the other instead of wiping.

- **Compress both files.** One slider loads two images, so the weight doubles. Use WebP; our comparisons of [JPG vs WebP](https://theplusaddons.com/blog/jpg-vs-webp/) and [AVIF vs WebP](https://theplusaddons.com/blog/avif-vs-webp/) explain the trade-offs.

- **Pick the right Image Resolution.** Serving a 4,000 px original into a 600 px column wastes bandwidth. If compression softens the result, see [how to fix blurry images in Elementor](https://theplusaddons.com/blog/fix-blurry-images-in-elementor/).

Image weight is a major speed factor on pages with several sliders. Our article on [whether Elementor slows down your website](https://theplusaddons.com/blog/does-elementor-slow-down-your-website/) covers the wider picture.

## Mobile and Accessibility Checks

- **Test with a thumb.** On a phone, move the divider with your finger and check that both images get enough room at the starting position.

- **Write real alt text.** When the images come from the Media Library, WordPress outputs them with the alt text you set there. Describe what each image shows, for example "Car seat with stains before cleaning".

- **Say the result in words too.** A sentence such as "Two sessions removed the staining" helps screen reader users and anyone who does not interact with the slider.

- **Keep labels short.** Long labels cover the image on small screens.

## Troubleshooting

- **The widget is missing from the Elementor panel.** Check that The Plus Addons for Elementor Pro is active and that Before After is switched on under The Plus Addons > Widgets.

- **The separator settings are missing.** Turn on Separator Line. The settings only show for the Horizontal and Vertical styles.

- **The images do not line up.** The two files have different sizes or crops. Export both at the same pixel dimensions and upload them again.

- **No label appears.** Labels only render when Label for Before or Label for After has text.

- **Styles look broken after an update.** Go to The Plus Settings > Performance and click Purge all cache, then clear any cache plugin and your browser cache. This is the fix the plugin FAQ gives for broken styles.

## Make More of Your Images

A comparison slider is one way to make images work harder. For galleries that move, see [how to add an image carousel in Elementor](https://theplusaddons.com/blog/image-carousel-in-elementor/) and our list of [carousel and slider widgets for Elementor](https://theplusaddons.com/blog/best-elementor-carousel-slider-widgets/). For motion as visitors scroll, read about [scroll animations in Elementor](https://theplusaddons.com/blog/scroll-animations-in-elementor/).

**Ready to build your first comparison?** Start with the free [The Plus Addons for Elementor on WordPress.org](https://wordpress.org/plugins/the-plus-addons-for-elementor-page-builder/), see what Pro adds in the [free vs Pro comparison](https://theplusaddons.com/free-vs-pro/), and pick a plan on the [pricing page](https://theplusaddons.com/pricing/) when you need the Before After widget.

## Frequently Asked Questions

### Does Elementor Have a Before After Slider Widget?

You add one with an addon or a dedicated plugin. The Plus Addons for Elementor works with the free version of Elementor, so you do not need Elementor Pro to use its Before After widget.

### Is the Before After Widget Free?

No. Before After is part of The Plus Addons for Elementor Pro. The free plugin on WordPress.org includes many other widgets, but not this one.

### Can the Divider Move Up and Down Instead of Sideways?

Yes. Set Style to Vertical and the divider moves up and down, which suits portrait images.

### Can the Slider Move When the Mouse Hovers Over It?

Yes. Mouse Hover option in the Style tab makes the divider follow the pointer, and it is on by default.

### Why Do My Before and After Images Not Line Up?

The two images have different dimensions or framing. Crop both to the same pixel size from the same viewpoint, then upload them again.

### Can I Use Images From Custom Fields?

Yes. Image for Before, Image for After and both labels accept dynamic tags, so you can fill them from custom fields in a template.

## Suggested Reading

- [WordPress Before After Slider Plugins](https://theplusaddons.com/blog/wordpress-before-after-slider-plugins/)

- [Best WordPress Before After Slider Plugins](https://theplusaddons.com/blog/best-wordpress-before-after-slider-plugins/)

- [How to Add an Image Carousel in Elementor](https://theplusaddons.com/blog/image-carousel-in-elementor/)

- [How to Fix Blurry Images in Elementor](https://theplusaddons.com/blog/fix-blurry-images-in-elementor/)

- [JPG vs WebP: Which Format Should You Use?](https://theplusaddons.com/blog/jpg-vs-webp/)

- [Scroll Animations in Elementor](https://theplusaddons.com/blog/scroll-animations-in-elementor/)

- [Best Free Elementor Addons](https://theplusaddons.com/blog/best-free-elementor-addons/)