| 开发者 | appholdings |
|---|---|
| 更新时间 | 2026年10月19日 14:06 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[beforely] shortcode for the classic editor, widgets and page builders.[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. Defaults to "Before" and "After".labels: always, hover or none.orientation: horizontal or vertical.start: where the handle starts, from 0 to 100. Default 50.move_on: drag or hover.color: handle color as a hex code, for example #ffffff.animate: yes to play the hint animation.radius: corner radius in pixels.before_alt, after_alt: alternative text when you use image URLs.caption: a caption shown under the slider.class: extra CSS classes.[beforely] shortcode with the media library IDs of your two images.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.
Yes. Add the [beforely] shortcode in the builder's shortcode or text widget.
Open Media > Library, click the image, and look at the address bar. The number after item= is the ID. You can also use the image URL instead.
Yes, as many as you like.
The slider shows both photos at the starting position without JavaScript. Moving the handle needs JavaScript.
No. It makes no external requests, sets no cookies and does not track visitors.