WordPress Before After Slider – Compare Images with a Smooth, Elegant Reveal
WordPress before after slider that shows the difference at a glance: two perfectly aligned images in one frame – the original and the edited photo, the room before and after the renovation – and a slim handle your visitors drag, swipe or hover to reveal one over the other. In real time, without any delay. See all Image Styling plugins by Rand Consulting.
Rand Compare Reveal looks premium out of the box: a thin line with a soft shadow, a round grabber with arrows, glass-style “Before” and “After” labels and a short peek animation when the slider scrolls into view. No configuration needed – but every detail can be changed.
Rand Compare Reveal Features
Smooth Reveal
- The top image is clipped with CSS clip-path and follows the cursor or finger with requestAnimationFrame – fluid 60 fps, no lag
- Mouse drag, touch swipe and click/tap to jump – vertical page scrolling on phones keeps working
- Optional “follow the mouse” (hover) mode in addition to dragging
- Optional auto-animation: a short peek to both sides when the slider scrolls into view, then it stops
- Side by side or top and bottom, starting position from 0 to 100%
Elegant Design
- Five handle styles: Circle, Rounded square, Glass (frosted), Slim bar and Arrows only – with or without arrows
- Colours for handle, line, arrows, label background and label text – with your theme’s colour palette, or “Use the theme colours”
- Labels always visible, on hover or hidden; top, middle or bottom; they fade out when the handle covers their side
- Aspect ratio from the image or 16:9, 3:2, 4:3, 1:1, 4:5, 21:9, 9:16 or a fixed height (own height on phones)
- Fill or fit, maximum width with alignment, corner radius and four shadow presets
- Subtle micro-interactions and dark mode friendly
Saved Comparisons – Create Once, Use Anywhere
- Choose both images from the media library and watch the live preview for desktop, tablet and mobile before you publish
- Duplicate a comparison with one click and reuse it on any page
- Every comparison has its own shortcode: [rand_compare_reveal id=”123″]
Works with Your Editor
- Gutenberg block “Compare Reveal” with a live, draggable preview and all options in the sidebar
- Shortcode for widgets, the Classic Editor and any page builder
- Elementor widget and WPBakery Page Builder element
- Classic Editor: “Add Comparison” button next to “Add Media”
Fast, Accessible and Conflict-Free
- Vanilla JavaScript, no jQuery – about 4 KB of JavaScript and 3 KB of CSS (compressed), loaded only on pages with a slider
- Native lazy loading and responsive images (srcset) from the media library
- Keyboard control (arrow keys, Home, End), ARIA slider role and visible focus ring
- Respects “reduced motion”, RTL support for right-to-left languages
- All CSS classes start with “rand-cr” – no conflicts with themes or page builders
- English and German (de_DE, de_AT, de_CH)
License
- 1 license key for 1 website
- Your license key is sent automatically by email after payment and is available in My Account
- An invoice (PDF) is generated automatically and attached to the order confirmation
Installation
- Download the plugin ZIP after purchase
- In WordPress, go to Plugins › Add New › Upload Plugin
- Upload the ZIP and activate Rand Compare Reveal
- Enter your license key under Settings › Rand Licenses
- Create a comparison under Compare Reveal › Add New
- Add it with the “Compare Reveal” block, the shortcode, the Elementor widget or the WPBakery element
Requirements
- WordPress 6.4 or newer
- PHP 7.4 or newer
Required Plugins
- None – Rand Compare Reveal works on any WordPress website
- Elementor and WPBakery are optional – the widget and element appear automatically when they are active
WordPress Before After Slider – Frequently Asked Questions
Do both images need the same size?
No, but the result is best with two images of the same size and framing. The slider takes the size of the after image or the aspect ratio you choose.
Does it work on phones?
Yes. Swipe sideways to move the handle; scrolling the page up and down keeps working. A tap on the image moves the handle to that point.
Can visitors use the keyboard?
Yes. The handle is a slider for screen readers and keyboards: arrow keys move it, Shift + arrow in bigger steps, Home and End go to the edges.
Which page builders are supported?
The block editor (Gutenberg), Elementor, WPBakery Page Builder and the Classic Editor – and every other builder through the shortcode.
Does it slow down my website?
No. The files are tiny, loaded only on pages with a slider, and the images are lazy-loaded with responsive sizes.














Reviews
There are no reviews yet.