The Before/After Image Slider module in Divi 5 lets you place two images on top of each other and reveal the difference with a draggable slider.
You drop in a 'before' and an 'after' image, then style the handle, labels, and layout so visitors can interactively compare changes, results, or alternatives in a single, focused module.
Add The Divi Before/After Image Module
When you load the Visual Builder, Divi automatically adds a Section.
Click the Green Plus icon
to insert a Row.Click the Gray Plus icon
inside the Row, which will show the list of all available Divi modules.Find the Before/After Image module and click on it to load it. Alternatively, you can use the Search option to find it.
The Divi Before/After Image Module Use Cases
Showcase visual transformations: Use the Before/After Image Slider module to display transformations like renovation projects, makeovers, retouching, or edits. Add the module, set a 'before' photo on one side and an 'after' on the other, then let visitors drag the handle to see exactly what changed between the two states.
Compare product variations or options: Place two product images in the slider to compare finishes, colors, or model revisions. For example, show an old vs new packaging design or different colorways of the same product so users can quickly spot differences without scrolling through multiple separate images.
Explain design or content improvements: Use the module to demonstrate before/after states for a website redesign, infographic update, or UI change. The slider makes it easy to highlight improvements in layout, readability, or branding by letting users scrub between the original and updated versions on the same canvas.
Before/After Image Module Settings Breakdown
Once you've added the Before/After Image module, its settings will automatically appear. This is where this module's content and design styles are configured. These settings are organized into three groups via the tabs at the top of the module:
The Content tab
Inside the Content tab, you can add or remove Carousel Slides, change the Carousel settings, change the default arrow icons, customize the background styles, and much more.
Images - Choose the Before and After Images.
Labels - Choose the text each label (before and after) displays.
Link - Choose a link for the entire module.
Elements - Let you insert nested elements.
Background - Choose the Before/After Image module's background styles.
Loop - Enables the loop builder.
Order - Choose the display order of the Before/After Image module. This is most useful when using it inside the Loop builder.
Meta - Choose the Element's Label text and the Visibility:
Element Label: Select the Before/After Image module's label text to help you keep things organized and easy to understand in the Visual Builder.
Force Visible - Select how the Before/After Image module's visibility works when the module is hidden by other options:
Never - If the Before/After Image module is hidden by other visibility settings, it will remain hidden
While in Builder - If the Before/After Image module is hidden by other visibility settings, it will become visible only when the Visual Builder is active
While Editing Element - If the Before/After Image module is hidden by other visibility settings, it will become visible in the Visual Builder only when you are editing the module.
The Design tab
All the design styles and options for the Before/After Image module are in this tab.
Layout - Choose the Layout Style. It allows you to change how the child modules are being displayed.
Labels - Choose the Labels styles such as font styles, spacing, border, and background styles.
Slider - Choose the Slider's handle styles, such as the orientation (Horizontal or Vertical), the Handle's color, the position of the handle, and the Arrow's color.
Sizing - Choose the Before/After Image module's sizing.
Spacing - Choose the spacing for the Before/After Image module.
Border - Choose the border styles for the Before/After Image module.
Box Shadow - Choose the Box Shadow styles for the Before/After Image module.
Filters - Choose the Before/After Image module's filters, including hue shifts, saturation adjustments, and blending modes.
Transform - Choose the Before/After Image module's advanced design effects, including scaling, rotating, skewing, and translating.
Animation - Choose the Before/After Image module's animation styles to add personality and interactivity while maintaining a polished, professional feel.
The Advanced tab
The Advanced tab provides tools for experienced designers, including options for adding CSS IDs and Classes, controlling visibility, managing transitions, adjusting element positions, and creating scroll effects.
Attributes - Allows you to assign unique CSS ID or reusable CSS classes, enabling advanced custom styling through your child theme’s stylesheet or Divi’s custom CSS settings.
CSS - Allows you to add custom CSS code to fine-tune your Before/After Image module, enabling advanced styling that perfectly aligns with your vision.
HTML - Choose the semantic HTML tag for the Dropdown module.
Conditions - Allows you to create dynamic, personalized content, ensuring the right message reaches the right audience at the right time.
Interactions: Create custom interactions, such as showing or hiding the Before/After Image module, and many more.
Visibility - Choose the visibility of the Before/After Image module for different devices.
Transitions - Choose how long the Before/After Image's module animation takes, adding subtle, impactful animations that enhance user experience and make your modules stand out.
Position - Choose precise control of the Before/After Image's module placement and create dynamic, visually engaging designs.
Scroll Effects - Control how the Before/After Image module behaves and transforms during scrolling.
What's the next step?
Save your changes and exit the Visual Builder
To save the page design, you can type CMD + S on a Mac or CTRL + S on a PC.
You can also:
Click on the Save button.
Click on the Exit button.





