Before After Image

Compare two aligned images with an interactive draggable divider. Use it for photo retouching, design comparisons, or documented before-and-after work.

Setup and First Use


Before starting, enable the relevant element or feature family under Bricks → BricksUltimate → General Elements, save, and reopen the Bricks editor. Integrations also require their corresponding plugin to be active.

  1. Add (BU)Before After Image and select Before image and After image.
  2. Use matching dimensions, framing, and subject position so dragging reveals a meaningful comparison.
  3. Enter useful alternative text/captions and set the before and after labels.
  4. Choose a horizontal comparison or Vertical mode and adjust Starting point.
  5. Style the divider, arrows, optional circle, labels, borders, and image filters.
  6. Test dragging on desktop and touch devices and ensure surrounding page scrolling remains usable.

Controls and Settings


ControlPurpose and usage
Before / After imageProvide both assets; the element does not generate or align the images for you.
Alt text / CaptionDescribe the images meaningfully. Avoid identical generic descriptions if the difference is important.
Disable labels / Show on hoverControl whether the labels appear and when they are revealed. Keep essential meaning available without hover.
Starting point / Vertical modeSet the initial divider position and movement orientation. The controls allow adjustment without editing CSS.
Start on hover / SmoothingChoose interaction behavior and smoothing amount. Smoothing is automatically disabled on touch-enabled screens.
Handler appearanceControl divider shadow, circle, blur, arrow colors/sizes/positions, line width, and label backgrounds/typography.

Prepare Comparable Assets


Export two versions with the same composition before upload. Object alignment and cropping matter more than a decorative frame. Optimize file sizes and test image quality at the actual display size; two full-resolution originals can be unnecessarily expensive on mobile.

Explain the Comparison


Use clear labels such as Original and Edited, and include a nearby text description of important changes. Do not make an essential claim understandable only through a drag interaction or hover label. Verify the chosen interaction with keyboard and assistive technology before using it as the only comparison format.

Practical Example


Show an original room photo and its finished renovation from the same camera angle. Begin with the divider in the middle and labels visible so visitors immediately recognize the two states.

Troubleshooting


  • Misaligned result: fix source framing and dimensions rather than compensating with arbitrary divider offsets.
  • Drag interferes with page scroll: test Vertical mode and touch behavior in the real layout.
  • Labels unreadable: adjust contrast and padding, and avoid placing labels over detailed image areas.

Related Documentation