Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Beaf is a custom Gutenberg Block based plugin that is developed with Gutenberg Native Components. You can easily showcase the Photo Comparison. It comes with different styles and settings so that you can easily customize it as per your needs. It is a lite version of Beaf Pro. To get more features and options, you can check the Beaf Pro.
How do I add a before and after image slider in WordPress?
Install and activate the plugin, open a post or page in the block editor, add the “Image Compare” block and choose your before and after images. That’s it.
Does it work with my theme?
Yes. It works with block themes and classic themes, and in posts, pages, custom post types, widgets and Site Editor templates wherever the block editor is available.
Do I need a page builder?
No. It is a native Gutenberg block. No page builder is required.
Is it responsive and mobile friendly?
Yes. The slider scales with its container, serves responsive images from the Media Library, and supports swiping on touch devices while vertical page scrolling still works.
Can I make a vertical (top/bottom) comparison?
Yes. Turn on vertical mode in the block settings to compare images from top to bottom.
Can I add “Before” and “After” labels?
Yes. Enable labels, change their text, and style their position, colors and font size. Labels can be always visible or shown only on hover.
Will it slow down my website?
No. The block has no jQuery or external dependencies, and its small script and styles load only on pages that contain the block.
Is it accessible?
Yes. The slider handle can be focused with the keyboard and moved with the arrow keys, Page Up/Down, Home and End. It is exposed to assistive technology as a slider with its current value, and you can set alt text for both images.
Can I use more than one comparison slider on a page?
Yes. Add as many Image Compare blocks as you like.
Should both images be the same size?
For the best result, use two images with the same dimensions and framing. You can also set an aspect ratio on the block to crop both images evenly.
Will my existing blocks keep working after updating?
Yes. Blocks created with older versions are upgraded automatically. On the front end they use the new slider straight away, and the next time you open the post in the editor they are migrated with no validation errors.
Have you used any block builder?
No, it is built with native block editor components only.