Image Reveal
An image that appears as it comes into view: wiped open, opened from a corner, scaled up, built out of tiles that grow one after the other, or faded in while it rises or drops into place. An image that is already on screen when the page loads plays straight away.
Image Reveal is a Free widget: it works as soon as the companion plugin is installed.
Requires: GSAP core, ScrollTrigger. The plugin loads them only on pages that use the effect; see How GSAP gets loaded.
Where to find it#
| How | Where |
|---|---|
| As an element | Elements panel › Bricksify › Image Reveal. It is a Bricks Image with the animation built in: every Image setting is there (image, size, alt text, caption, link and lightbox, loading, aspect ratio, object fit, sources, mask), plus a Reveal animation group. |
| As a control group | Image Reveal (Bricksify) on the native Image. Pick an effect in Animation type and the other settings appear. |
| On a Block or Div | Image Reveal (Bricksify) on the native Block and Div, and on Heading, Basic Text, Rich Text, Text Link and Button, with Fade in (rise or drop) only: the whole box, with everything inside it, fades in while it rises or drops into place. Made for cards, tiles and hero entrances (titles, text and buttons that rise in one after another, each with its own delay); used by the Projects Card Reveal template and the Hero templates. |
Both use the same settings, saved under the same names. See How widgets work for the difference between the two.
Settings#
| Setting | Options and default | What it does |
|---|---|---|
| Effect (element) or Animation type (control group) | Reveal (wipe), Corner reveal, Scale, Tiles, Fade in (rise or drop), No animation. On the element the default is Reveal; in the control group it is None, which leaves the effect off. | How the image appears. See the table below. |
| Direction | Reveal only. Right to left (default), Left to right, Bottom to top, Top to bottom. | The way the wipe travels. |
| Opens | Corner reveal only. From top left, From top right (default), From the centre, From bottom left, From bottom right. | Where the opening starts. |
| Starting size | Scale only. Default 0.5, from 0 to 10. | The scale the image grows from to its full size. Above 1 it shrinks in instead, kept inside its own frame. |
| Grows from | Scale only. Left (default), Right, Top, Bottom, Centre. | The point the image grows out of. |
| Moves in from (px) | Fade in only. Default 50, from -1000 to 1000. | How far it travels into place: a positive value rises from below, a negative one drops from above, 0 fades in where it is. |
| Moves in sideways from (px) | Fade in only. Default 0, from -1000 to 1000. | Horizontal distance it travels into place. Positive comes from the right, negative from the left. Set Moves in from to 0 for a purely sideways move. |
| Starting size (Fade in) | Fade in only. Default 0.9, from 0 to 2. | The scale it starts from while it fades in; 1 keeps its size. |
| Number of tiles | Tiles only. Default 5, from 2 to 50. | How many strips the picture is cut into. |
| Orientation | Tiles only. Horizontal (columns) (default), Vertical (rows). | Strips side by side, or stacked. |
| Tiles grow | Tiles only. Columns: Bottom to top (default), Top to bottom. Rows: Left to right (default), Right to left. | The edge each strip grows from. The strips always start one after the other from the first (left column, or top row). |
| Stagger (s) | Tiles only. Default 0.08. | Time between one strip and the next. |
| Plays when | Image top reaches screen middle (default), or any pairing of image top, middle or bottom with screen top, middle or bottom, or Custom. | The point at which an image further down the page starts. An image already on screen when the page loads plays straight away whatever this says. |
| Custom start | With Custom. Default top 80%. | Image position, then screen position: top, center, bottom, % or px. top 80% = the image top at 80% of the screen height. |
| Duration (s) | Default 1.2. | How long the animation lasts. Per strip with the tiles effect. |
| Delay (s) | Default 0. | Wait before it starts. |
| Easing | Power4 InOut (default), plus Power1 to 3, Back, Elastic and Bounce, each In, Out or InOut, plus Expo Out, Expo InOut and Circ Out. | The rhythm of the wipe, the opening, the growth or the strips. |
| Replay when scrolled back | Off by default. | Scrolling back up above the start point hides the image again, so it plays again next time. |
Every setting except Replay can be set per breakpoint, like any other Bricks setting: switch the builder to a breakpoint and change it there. For example, fewer tiles on phones, or No animation on phones only.
The five effects#
| Effect | What you see |
|---|---|
| Reveal (wipe) | The image is wiped open in one direction while the picture settles from a 1.2 zoom to its normal size, inside its own frame. |
| Corner reveal | The image opens out of a corner, or out of the centre, while the picture settles from a 1.15 zoom. |
| Scale | The image grows from the starting size to its full size, out of the side you choose. |
| Tiles | The picture is cut into strips that grow from one edge, one after the other. When the last one is in place the strips are removed and the image is exactly as you set it. |
| Fade in (rise or drop) | The image fades in while it moves into place from below or above and grows from the starting size, all together. Used by the Gallery Masonry Fade template. On a Block or Div the whole box moves (Projects Card Reveal). |
The zoom amounts and the settle curve of Reveal and Corner reveal are the original's and are not settings.
How it behaves#
- An image already on screen when the page loads plays straight away. The others play when they reach Plays when. If the page loads further down with an image above, that image has already played when you scroll back to it.
- It plays once, unless Replay when scrolled back is on.
- Lazy-loaded images are revealed once the picture has arrived, never a blank frame.
- Only the image moves. A caption, a lightbox icon and the rest of the layout stay put; the image keeps its own size in the layout the whole time, so nothing around it jumps.
- Rounded corners, filters and object fit are kept during the animation, tiles included.
- Crossing a breakpoint before the image has played picks up the settings of the new size. The tiles are measured when they start; resizing the window while they run finishes the animation at once.
- The animation never runs in the builder, so the image stays easy to edit. Check it on the front end.
- Images added to the page after it loads (AJAX, popups, query loop pagination) can be picked up by calling
BricksifyImageReveal.refresh().
Reduced motion and without JavaScript#
For a visitor who has asked for reduced motion, the image is simply there.
Without JavaScript the image shows normally. While the script loads, the image is hidden so it cannot flash and then disappear; if the script or GSAP never arrives, it is shown after 3 seconds anyway.
Zoom and hover#
Zoom from (Reveal and Corner): the scale the picture settles from while it is wiped open, 1 to 3 (default 1.2, 1.15 for Corner). Set 1 for a plain wipe.
On hover: Wipe out and back in wipes the picture away and straight back (Image, Block and Div); Wipe away to the picture underneath (Block and Div with at least two Images) wipes the last Image away to uncover the one under it and wipes it back when the pointer leaves. Settings: wipe direction, hover duration (default 1s) and hover easing. The whole link around the element is the hover area. Mouse only; nothing happens on touch.