For the complete documentation index, see llms.txt. This page is also available as Markdown.

Before After (Paid)

Compare two images or sets of content with an interactive slider

Before After creates an interactive comparison that visitors can drag to reveal more or less of two images or two sets of components. It is ideal for photo edits, renovations, product comparisons, design revisions, and any situation where the difference is easier to understand visually.

The comparison can run horizontally or vertically, use a fixed or responsive height, and animate on hover or automatically. Content mode also lets you compare complete layouts rather than images alone.

Purchase Before After

Features

  • Image and content modes — Compare two images or place any Elements components on either side.

  • Flexible sizing — Use an aspect ratio, a fixed height, or let the content determine the height.

  • Horizontal and vertical reveals — Match the movement to the subject being compared.

  • Optional animation — Animate on hover or move the divider automatically.

  • Custom divider and handle — Set the starting position, thickness, colour, and handle visibility.

  • Touch-friendly interaction — Visitors can drag the comparison on desktop and touch devices.

Requirements

Before using Before After, make sure you have:

  • The Before After pack installed from the Elements Store.

  • Two suitable images, or two sets of child components when using Content mode.

Supported Content and File Types

Before After supports:

  • Two image resources supported by Elements.

  • Any Elements components placed in the Before and After dropzones.

  • Responsive image and component-based comparisons.

How to Use Before After

You’ll find Before After under Media in the Components list.

  1. Drag Before After onto the page.

  2. Choose Images or Content from the Mode setting.

  3. Add the Before and After images, or place components into the two content dropzones.

  4. Choose a Height Mode and Orientation.

  5. Set the divider’s starting position and decide whether to show the handle.

  6. Preview the page and test the comparison with a pointer and on a touch device.

Component Settings

Before After

Height Mode

Controls how the component calculates its height.

  • Aspect Ratio — Keeps the component at the selected proportion as its width changes. The default ratio is 7/5.

  • Fixed Height — Uses a height in pixels. The default is 500px.

  • Dynamic (Content) — Lets the child content determine the final height. The Initial Height setting provides a 500px starting height while the content is being measured.

Orientation

  • Horizontal — The divider moves from left to right.

  • Vertical — The divider moves from top to bottom.

Animate

  • Off — The divider only moves when a visitor drags it.

  • Hover — The reveal follows the visitor’s hover position.

  • Auto — The divider animates automatically.

When Hover or Auto is selected, Duration controls the animation time in seconds. The default is 3 seconds.

Divider

  • Start Position — Sets the initial reveal point. The default is 50%.

  • Width / Height — Controls divider thickness. Width appears for horizontal comparisons and Height appears for vertical comparisons.

  • Color — Sets the divider colour.

  • Handle — Shows or hides the draggable handle.

Mode

  • Images — Displays the selected Before and After image resources.

  • Content — Provides separate dropzones for complete component layouts.

In Content mode, View In Edit switches between the Before and After sides while you work in the editor.

Advanced

Use Classes to add custom CSS classes and ID to assign a unique HTML identifier.

Before After component Inspector with sizing, orientation, animation, divider, and content controls
The Before After settings in the Inspector.

Accessibility

  • Give both images useful descriptions in Resources. Describe the meaningful difference rather than repeating “before” and “after”.

  • Keep the divider and handle visible with sufficient contrast so the interaction is easy to discover.

  • Do not use the comparison as the only way to communicate essential information; include a short text explanation nearby.

  • Avoid automatic movement when it is not necessary, and test the finished page with touch and pointer input.

Tips and Best Practices

  • Match the source images: Use the same crop, dimensions, and camera position for the clearest comparison.

  • Start near the centre: A 50% starting position shows that both sides are available.

  • Use Content mode deliberately: Keep the two layouts similar in size, especially when using Dynamic height.

  • Optimise images: Resize and compress large originals before publishing.

Troubleshooting

The component jumps or changes height

Use Aspect Ratio or Fixed Height when the two sides have different dimensions. In Content mode, also make sure both layouts have predictable heights.

The divider is difficult to see

Choose a divider colour that contrasts with both sides, increase its width or height, and enable the handle.

Only one content side is visible in the editor

Use View In Edit to switch between Before and After. Both sides appear in the published comparison.

  • Image Slider — Present several images as a sequence rather than comparing two layers.

  • Image — Add and optimise individual image resources.

Common Control
Description

Link

Link to a page, resource, anchor, email address, or website.

Layout

Control positioning, stacking, visibility, overflow, and isolation.

Sizing

Set width, height, and responsive size constraints.

Spacing

Add responsive margin and padding.

Typography & Text Styles

Control fonts, text spacing, decoration, colour, and semantic wrappers.

Backgrounds

Apply colour, image, gradient, SVG, video, and hover backgrounds.

Transitions

Choose what animates and set its timing curve, duration, and delay.

Effects

Apply shadows, opacity, and hover effects.

Filters

Apply blur, brightness, saturation, shadow, and backdrop effects.

Transforms

Scale, rotate, move, and skew components.

Borders

Set border style, colour, opacity, width, radius, and hover states.

Advanced

Add CSS classes and IDs, or change supported HTML tags.

Last updated

Was this helpful?