Image Block Reveal for Bricks
Image Block Reveal is an image element covered by a solid colour block that wipes away as the picture scrolls into view.
Version: 0.1.0 · Requires: Bricks Builder, WordPress 6.5+ and PHP 8.1+ · See the live demo
Please note: this is an early release. It has been run on this playground but not yet tested widely, so stage & back up before using it on a live site.
Using it
- Add Image Block Reveal (Media group) and choose an image.
- Under Reveal, choose a style, direction and block colour.
Controls
- Image: media library or dynamic data, alt text, optional link, aspect ratio, fit and position.
- Style: Uncover shrinks the block away; Sweep crosses the picture, then leaves. Direction is left to right, right to left, top to bottom or bottom to top.
- Timing: block colour, duration, delay and easing.
- Extras: a slight zoom that settles, start on scroll or on load, how much must be visible first, and replay each time it scrolls into view.
Behaviour
Reduced motion, no JavaScript and the builder canvas all show the picture straight away, so nothing is ever left hidden. The block is decorative and hidden from assistive technology.
Styling
Variables: --ibr-color, --ibr-dur, --ibr-delay, --ibr-ease, --ibr-ratio, --ibr-fit, --ibr-pos.
Changelog
- 0.1.0 — first release.