Effects · Gutenberg

Reveal Swipe Cards block for WordPress

Before/after swipe reveal cards — drag the divider to uncover the back image.

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

Before/after swipe reveal cards — drag the divider to uncover the back image.

Inspector panels on this block: Cards, Card, Layout, Divider & Handle, Labels. Those titles come from index.js, not from a shared template.

Behavior controls: “Swipe Orientation” options: Horizontal, Vertical.

Where to find it

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

How to use Reveal Swipe Cards block for WordPress

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “Reveal Swipe Cards”, insert it. Category: Effects.
  3. Configure inspector controls that exist on this block. Open Cards. Set “Front Label”, “Back Label”, “Initial Divider Position (%)”, “Columns”.
  4. Check the published page. The view script reads HTML data attributes: data-opts. The block editor preview may not run the same view script.

Inspector controls from this block’s code

ControlWhat the code does
Front LabelText field in the inspector.
Back LabelText field in the inspector.
Initial Divider Position (%)Numeric range control in the inspector. Range 5–95.
ColumnsSelect control; the chosen value is saved on the block. block.json default: 2. Saved as `columns`.
Swipe OrientationSelect control; the chosen value is saved on the block. Options: Horizontal; Vertical. block.json default: horizontal. Saved as `orientation`.
Card Height (px)Numeric range control in the inspector. Range 160–700. block.json default: 360. Saved as `cardHeight`.
Card Radius (px)Numeric range control in the inspector. Range 0–40. block.json default: 16. Saved as `cardRadius`.
Gap (px)Numeric range control in the inspector. Range 0–60. block.json default: 24. Saved as `gap`.
Divider Width (px)Numeric range control in the inspector. Range 1–8. block.json default: 3. Saved as `dividerWidth`.
Handle Size (px)Numeric range control in the inspector. Range 24–80. block.json default: 44. Saved as `handleSize`.
Show LabelsOn/off toggle in the inspector. On by default. Saved as `showLabels`.
LabelsShared Blockenberg typography popover (family, size, weight, spacing). Saved as `labelTypo`.
DividerColor control in the inspector. block.json default: #ffffff. Saved as `dividerColor`.
Handle BGColor control in the inspector. block.json default: #ffffff. Saved as `handleBg`.
Handle IconColor control in the inspector. block.json default: #0f172a. Saved as `handleColor`.
Label TextColor control in the inspector. block.json default: #ffffff. Saved as `labelColor`.

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 Reveal Swipe Cards block in WordPress?

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Reveal Swipe Cards”. It sits under Effects. After insert, open Cards and set “Front Label”, “Back Label”, “Initial Divider Position (%)”, “Columns”.

What makes Reveal Swipe Cards different from other Blockenberg blocks?

Before/after swipe reveal cards — drag the divider to uncover the back image. Inspector labels on this block include “Front Label”, “Back Label”, “Initial Divider Position (%)”, “Columns”.

Is the Reveal Swipe Cards Gutenberg block free?

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

Can I style Reveal Swipe Cards 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: Cards, Card, Layout, Divider & Handle).

Related effects blocks

Get Blockenberg

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

Get Blockenberg