Beforely for WordPress
Free plugin
The Beforely – Before After Image Slider plugin adds a Before After Slider block to the block editor and a [beforely] shortcode for the classic editor, widgets and page builders such as Elementor and Divi.
Install
- In your WordPress dashboard, go to Plugins > Add New, search for Beforely, then click Install and Activate.
- Edit a page or post, click + and add the Before After Slider block.
- Choose the before and after images. Labels, direction, starting position, colors and the hint animation are in the block settings sidebar.
Shortcode
[beforely before="12" after="34"]
before and after take a media library ID or an image URL. Optional attributes:
before_label,after_label: label text (default "Before" and "After")labels:always,hoverornoneorientation:horizontalorverticalstart: where the handle starts, 0 to 100 (default 50)move_on:dragorhovercolor: handle color, for example#ffffffanimate:yesto play the hint animationradius: corner radius in pixelsbefore_alt,after_alt: alt text when you use image URLscaption,class: a caption and extra CSS classes
Privacy
The plugin makes no external requests, sets no cookies and collects nothing.
Help
Email feedback@appholdings.org or see the support page.