A modern, easy-to-use comparison slider. Compare before and after images, for grading, CGI and other retouching comparisons. Easily convert two images into a comparison slider to show your work, whether it’s photo grading, CGI, or any other kind of retouching.
Using an intuitive tag that wraps two images, there is no other work that needs to be done to get your comparison sliders working.
- Two modern theme options
- Great customization including start on hover, and starting point
- Mobile friendly
All example photos by Dane Wetton.
You can search Modern Comparsion Slider right in your WordPress plugins section, alternatively you can download and install the plugin:
- Activate the plugin through the ‘Plugins’ menu in WordPress
- Wrap two images of the same size with the [compare] tag
ہرہک دے سوال
How do I use this plugin?
Place two images of the same size one after another in the editor (tip: If you’re using the new editor, make sure your block that holds these two images is set to ‘Classic’)
Wrap these two images with the [compare] [/compare] tag. That’s all it needs to get working!
How can I style the look and feel?
There is a settings page found at Settings > Modern Compare Slider that will affect all sliders on the website. However, you can override a look and feel of any particular slider by using these options:
To disable the drop shadow on the controls
To change the color of the controls
To change the theme
[compare theme="standard"] [compare theme="circle"]
To change the starting point, where the value is the percentage to show the before image initially.
To start the slider on hover
To disable smoothing
To adjust the smoothing amount, where the higher the value, the more dampening you feel
You can add multiple options to a slider like so
[compare smoothing="false" color="#4299e1" theme="circle"]
Contributors & Developers
“Modern Comparison Slider” is open source software. The following people have contributed to this plugin.حصہ پاوݨ آلے
- Better mobile support (disables scrolling on interaction)
- Interaction persists when user leaves the scroller while mouse is down
- Accounts for WordPress automatically nesting images inside paragraph elements
- Initial version, stable and ready to go!