Description
Beforely puts a “before” photo and an “after” photo on top of each other. Visitors drag the handle, or click anywhere on the image, to reveal more of one or the other. It works well for renovations, cleaning and landscaping jobs, salons and med spas, dentists, photo retouching and product results.
Features
- A “Before After Slider” block for the block editor, with a live preview.
- Left and right, or top and bottom.
- Choose where the handle starts.
- Visitors drag or click to move the handle, or the handle follows the mouse.
- Editable “Before” and “After” labels, shown always, on hover or never.
- Handle color and rounded corners.
- An optional hint animation that plays once when the slider scrolls into view. It is skipped for visitors who ask their device for reduced motion.
- Keyboard support: the handle is a focusable slider. Arrow keys, Page Up, Page Down, Home and End move it, and screen readers announce its position.
- Works on phones. Swiping sideways moves the handle and swiping up or down still scrolls the page.
- Uses your media library images with responsive sizes and lazy loading.
- Small and fast. No jQuery and no other libraries. The script and styles load only on pages that show a slider.
- Nothing is sent anywhere. The plugin makes no external requests, sets no cookies and stores nothing outside your posts.
Beforely Pro
Need more? Beforely Pro is a separate paid plugin that adds video comparisons, one-photo effects (black and white, sepia, blur), a filterable gallery block, click, scroll and auto-sweep modes, more handle and label styles, and a [beforely] shortcode for the classic editor, widgets and page builders. This free plugin has no limits and shows no upgrade prompts.
Installation
- In your dashboard go to Plugins > Add New, search for “Beforely” and click Install, then Activate.
- Edit a page or post, click the + button and add the “Before After Slider” block.
- Choose the before photo and the after photo. Adjust labels, direction and style in the block settings sidebar.
FAQ
Do the two photos need to be the same size?
The slider takes its size from the before photo, and the after photo is scaled to cover the same area. Photos taken from the same spot with the same framing and aspect ratio line up best.
Can I use it with Elementor, Divi or another page builder?
This plugin is a block, so it works in the block editor, in block themes and in the Site Editor. Page builders, widgets and the classic editor need a shortcode. This plugin had one up to version 1.0.1; it is now only in Beforely Pro.
Can I put several sliders on one page?
Yes, as many as you like.
Does it work without JavaScript?
The slider shows both photos at the starting position without JavaScript. Moving the handle needs JavaScript.
Does it collect any data?
No. It makes no external requests, sets no cookies and does not track visitors.
Screenshots
Changelog
1.0.2
- Removed the
[beforely]shortcode, so the plugin contains only the Before After Slider block, as the WordPress Block Directory requires. The shortcode, with the same options, is now in Beforely Pro. - If a page uses the shortcode, replace it with the Before After Slider block before you update. Otherwise the page shows the shortcode as plain text.
1.0.1
- After you add the first photo in the block editor, the box for the second photo now stays in view. Before, a large first photo could push it off the right edge of the editor.
- If a photo fails to upload in the block editor, the editor now says why instead of silently emptying that side.
- The post can’t be saved while the photos are still uploading, so a temporary preview link is never published. An older post that has one shows the photo picker again.
- An “Uploading photos” overlay shows while the upload runs.
1.0.0
- First release.



