Effects · Gutenberg

Image Reveal block for WordPress

Image with a curtain reveal effect triggered on hover or scroll, with overlay label and caption.

Get Blockenberg

Free Gutenberg block in Blockenberg. The inspector controls and front-end behavior on this page come from this block’s source, not a shared stub.

Get Blockenberg

What it actually does

Image with a curtain reveal effect triggered on hover or scroll, with overlay label and caption.

Inspector panels on this block: Image, Reveal Effect, Overlay & Labels. Those titles come from index.js, not from a shared template.

Behavior controls: “Aspect Ratio” options: Auto (natural), 1:1 Square, 4:3, 3:2, 16:9; “Trigger” options: On Scroll (IntersectionObserver), On Hover, On Click; “Reveal Style” options: Sweep (curtain), Fade, Zoom In, Blur to Clear; “Direction” options: Left → Right, Right → Left, Top → Bottom, Bottom→ Top.

Where to find it

Gutenberg inserter → Effects → search “Image Reveal” (block name `blockenberg/image-reveal` in block.json). Style it in the sidebar after insert.

How to use Image Reveal block for WordPress

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “Image Reveal”, insert it. Category: Effects.
  3. Configure inspector controls that exist on this block. Open Image. Set “Alt Text”, “Aspect Ratio”, “Max Width (px, 0 = full)”, “Border Radius (px)”.
  4. Check the published page. The view script reads HTML data attributes: data-opts, data-rendered. The block editor preview may not run the same view script.

Inspector controls from this block’s code

ControlWhat the code does
Alt TextText field in the inspector. Saved as `imageAlt`.
Aspect RatioSelect control; the chosen value is saved on the block. Options: Auto (natural); 1:1 Square; 4:3; 3:2; 16:9; 21:9 Cinematic; 9:16 Portrait. block.json default: 16-9. Saved as `aspectRatio`.
Max Width (px, 0 = full)Numeric range control in the inspector. Range 0–1400. block.json default: 0. Saved as `maxWidth`.
Border Radius (px)Numeric range control in the inspector. Range 0–48. block.json default: 8. Saved as `borderRadius`.
TriggerSelect control; the chosen value is saved on the block. Options: On Scroll (IntersectionObserver); On Hover; On Click. block.json default: scroll. Saved as `trigger`.
Reveal StyleSelect control; the chosen value is saved on the block. Options: Sweep (curtain); Fade; Zoom In; Blur to Clear. block.json default: sweep. Saved as `revealStyle`.
DirectionSelect control; the chosen value is saved on the block. Options: Left → Right; Right → Left; Top → Bottom; Bottom→ Top. block.json default: left. Saved as `direction`.
Animation Duration (ms)Numeric range control in the inspector. Range 200–2000. block.json default: 600. Saved as `animationDuration`.
Scroll threshold (% of element in view)Numeric range control in the inspector. Range 5–90. block.json default: 30. Saved as `scrollThreshold`.
Reveal only onceOn/off toggle in the inspector. On by default. Saved as `revealOnce`.
Overlay Opacity (%)Numeric range control in the inspector. Range 10–100. block.json default: 75. Saved as `overlayOpacity`.
Show Overlay LabelOn/off toggle in the inspector. On by default. Saved as `showOverlayLabel`.
Overlay Label TextText field in the inspector. block.json default: Hover to reveal. Saved as `overlayLabel`.
Show Revealed LabelOn/off toggle in the inspector. Off by default. Saved as `showRevealedLabel`.
Revealed Label TextText field in the inspector. Saved as `revealedLabel`.
Show CaptionOn/off toggle in the inspector. Off by default. Saved as `showCaption`.
CaptionText field in the inspector. Saved as `caption`.
Overlay ColorColor control in the inspector. block.json default: #1e1b4b. Saved as `overlayBg`.
Label Text ColorColor control in the inspector. block.json default: #ffffff. Saved as `overlayTextColor`.
Caption ColorColor control in the inspector. block.json default: #6b7280. Saved as `captionColor`.

What the front-end script actually does

When this is the right block

Notes from the implementation

viewScript: this folder’s frontend.js is enqueued on the front end for this block.

FAQ

How do I add the Image Reveal block in WordPress?

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Image Reveal”. It sits under Effects. After insert, open Image and set “Alt Text”, “Aspect Ratio”, “Max Width (px, 0 = full)”, “Border Radius (px)”.

What makes Image Reveal different from other Blockenberg blocks?

Image with a curtain reveal effect triggered on hover or scroll, with overlay label and caption. Inspector labels on this block include “Alt Text”, “Aspect Ratio”, “Max Width (px, 0 = full)”, “Border Radius (px)”.

Is the Image Reveal Gutenberg block free?

Yes. Image Reveal ships inside Blockenberg. Get the plugin from WordPress.org — no paid add-on is required for this block.

Can I style Image Reveal to match my theme?

Yes. Blockenberg’s shared typography and color panels apply here, plus any block-specific style controls listed on this page (panels: Image, Reveal Effect, Overlay & Labels).

Related effects blocks

Get Blockenberg

Install Blockenberg from WordPress.org, then insert Image Reveal from the Gutenberg inserter.

Get Blockenberg