Effects · Gutenberg

Card Stack block for WordPress

A fanned or stacked pile of cards with hover-spread interaction. Perfect for testimonials, case studies, or feature highlights.

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

A fanned or stacked pile of cards with hover-spread interaction. Perfect for testimonials, case studies, or feature highlights.

Inspector panels on this block: Stack, Display, Default Colors, Cards, Card Colors. Those titles come from index.js, not from a shared template.

Behavior controls: “Stack style” options: Fan (cards rotate on hover), Pile (offset vertically), Spread (horizontal fan).

Where to find it

Gutenberg inserter → Effects → search “Card Stack” (block name `blockenberg/card-stack` in block.json). Style it in the sidebar after insert.

How to use Card Stack block for WordPress

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “Card Stack”, insert it. Category: Effects.
  3. Configure inspector controls that exist on this block. Open Stack. Set “Stack style”, “Card width (px)”, “Card min height (px)”, “Card border radius (px)”.
  4. Check the published page. The view script reads HTML data attributes: data-active-color, data-animate, data-behind, data-offset-x, data-offset-y, data-rotation, data-style. The block editor preview may not run the same view script.

Inspector controls from this block’s code

ControlWhat the code does
Stack styleSelect control; the chosen value is saved on the block. Options: Fan (cards rotate on hover); Pile (offset vertically); Spread (horizontal fan). block.json default: fan. Saved as `stackStyle`.
Card width (px)Numeric range control in the inspector. Range 240–600. block.json default: 380. Saved as `cardWidth`.
Card min height (px)Numeric range control in the inspector. Range 160–600. block.json default: 260. Saved as `cardMinHeight`.
Card border radius (px)Numeric range control in the inspector. Range 0–40. block.json default: 16. Saved as `cardRadius`.
Card padding (px)Numeric range control in the inspector. Range 12–64. block.json default: 32. Saved as `cardPadding`.
Rotation spread (°)Numeric range control in the inspector. Range 0–20. block.json default: 6. Saved as `rotationSpread`.
Offset X (px)Numeric range control in the inspector. Range 0–40. block.json default: 10. Saved as `offsetX`.
Offset Y (px)Numeric range control in the inspector. Range 0–40. block.json default: 6. Saved as `offsetY`.
Cards visible behindNumeric range control in the inspector. Range 1–4. block.json default: 2. Saved as `maxVisibleBehind`.
Show quote markOn/off toggle in the inspector. On by default. Saved as `showQuoteMark`.
Show tagOn/off toggle in the inspector. On by default. Saved as `showTag`.
Show authorOn/off toggle in the inspector. On by default. Saved as `showAuthor`.
Show nav dotsOn/off toggle in the inspector. On by default. Saved as `showNavDots`.
Animate in on scrollOn/off toggle in the inspector. On by default. Saved as `animateIn`.
Tag size (px)Numeric range control in the inspector. Range 9–16. block.json default: 11. Saved as `tagSize`.
Author size (px)Numeric range control in the inspector. Range 11–18. block.json default: 13. Saved as `authorSize`.
Card backgroundColor control in the inspector. block.json default: #ffffff. Saved as `globalCardBg`.
Card textColor control in the inspector. block.json default: #111827. Saved as `globalTextColor`.
Section backgroundColor control in the inspector. Saved as `bgColor`.
Padding top (px)Numeric range control in the inspector. Range 0–200. block.json default: 48. Saved as `paddingTop`.
Padding bottom (px)Numeric range control in the inspector. Range 0–200. block.json default: 48. Saved as `paddingBottom`.
Cards — TitleText field in the inspector.
DescriptionMultiline text field in the inspector.
Show as quoteOn/off toggle in the inspector.
TagText field in the inspector.
Author nameText field in the inspector.
Author roleText field in the inspector.
Card Colors — BackgroundColor control in the inspector.
Card Colors — TextColor control in the inspector.
AccentColor control in the inspector.
Tag backgroundColor control in the inspector.
Tag textColor control in the inspector.

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 Card Stack block in WordPress?

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Card Stack”. It sits under Effects. After insert, open Stack and set “Stack style”, “Card width (px)”, “Card min height (px)”, “Card border radius (px)”.

What makes Card Stack different from other Blockenberg blocks?

A fanned or stacked pile of cards with hover-spread interaction. Perfect for testimonials, case studies, or feature highlights. Inspector labels on this block include “Stack style”, “Card width (px)”, “Card min height (px)”, “Card border radius (px)”.

Is the Card Stack Gutenberg block free?

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

Can I style Card Stack 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: Stack, Display, Default Colors, Cards).

Related effects blocks

Get Blockenberg

Install Blockenberg from WordPress.org, then insert Card Stack from the Gutenberg inserter.

Get Blockenberg