Image Comparison
The Image Comparison element stacks two images and puts a drag handle between them. Moving the handle left or right wipes one image away to reveal the other, so a visitor controls the comparison instead of looking at two pictures side by side.
The classic use is before and after, where the two frames differ in one respect and the reveal is the point:
- Retouching, restoration and color grading work
- Renovation and construction progress
- Product configurations or finishes
- Design revisions shown to a client
Both images need the same dimensions
The two images sit exactly on top of each other. If they differ in size or crop, the wipe will not line up and the effect falls apart. Export both at identical dimensions, framed the same way.
Usage
- Add the Element: In the Salient WPBakery page builder, click Add Element and choose Image Comparison.
- Select Image One: This is the image shown first, on the left of the handle. For a before and after, this is the "before".
- Select Image Two: The image revealed as the handle moves. For a before and after, this is the "after".
- Check the Alignment: Preview the page and drag the handle from edge to edge. Any mismatch in framing between the two files shows up immediately.
Options
- Image One Media The first image, selected from the media library. It occupies the element until the handle is dragged.
- Image Two Media The second image, revealed as the handle moves across.
- Extra class name Code Adds your own class to the element so you can target it from custom CSS.