Phox Elements
GALLERY Stacked card galleries for Breakdance

Show images and posts as a shuffling stack of cards

Stacked Gallery piles your images on top of each other and moves the top card to the back, one at a time. It can play on its own, or visitors can click, swipe or use arrows. Use images from the media library, a dynamic gallery field, or a post and product query.

Images or post query Autoplay, click and swipe Dynamic gallery support
Live demos

Click or swipe the top card to move it to the back

The first stack uses images from the media library. The second is a product query that uses a global block for each card. Both also play on their own.

How it works

Three steps to a stacked gallery

Pick a source, set the size and choose how it moves.

1

Choose a source

Add images to the gallery, connect a dynamic gallery field, or switch Source to Query and pick a global block for the cards.

2

Set the size

Set the card width and height for each breakpoint, and the stacking offset and scale.

3

Choose the controls

Turn on autoplay, pause on hover, swipe, click to advance or arrows.

Features

What you get

A compact gallery that takes up the space of one image.

Image galleries

Add images from the media library, or use a dynamic gallery field.

Post and product loops

Switch to Query and design each card with a global block, using the Breakdance query builder.

Autoplay

Move to the next card every few seconds, with an optional pause on hover.

Swipe and drag

Swipe on touch screens or drag with the mouse to go forwards or back.

Click to advance

Click the top card to send it to the back of the stack.

Optional arrows

Show arrows at the sides, above or below the stack, and style them.

Stacking controls

Set the X and Y offset between cards and how much each card scales down.

Rotate the stack

Tilt the whole gallery from 0 to 360 degrees.

Responsive size

Set a different card width and height for each breakpoint.

Use cases

Where it works best

Anywhere you want to show several images in a small space.

01

Product highlights

Stack your newest or featured products with the query source.

02

Portfolio pieces

Show a handful of projects in one compact block.

03

Testimonials

Design a testimonial card as a global block and stack them.

04

Hero sections

Add a moving stack of photos beside a headline.

05

Property listings

Show photos of a property from a gallery field.

06

Team photos

Cycle through team members in a small space.

Settings reference

Every control, explained

This is the full list of settings in the Breakdance editor, with their default values.

ControlWhat it doesDefault
Content
SourceImages or Query (Posts).Images
ImagesThe gallery images. Accepts a dynamic gallery.—
Card Template (Global Block)The global block used for each card. Query only.—
QueryBreakdance query builder. Query only.—
Settings
AutoplayMove to the next card automatically.On
Interval (seconds)Time between cards, 1 to 20.4
Pause on HoverStop autoplay while the pointer is over the gallery.Off
Enable SwipeSwipe or drag to change card.On
Click to AdvanceClick the top card to move it to the back.On
Show ArrowsShow previous and next arrows.Off
Design
WidthCard width. Responsive.400px (300px on phones)
HeightCard height. Responsive.500px (300px on phones)
RotateRotate the gallery, 0 to 360 degrees.—
Card Styling
Card BordersBorders, radius and shadow for every card.20px radius
Top Card BorderSeparate border and shadow for the top card.—
Card BackgroundCard background colour. Query only.—
Stacking Effect
Offset X / Offset YHow far each card is shifted from the one above.—
Scale Down Per CardHow much smaller each card is, 0 to 0.3.—
Arrows
Arrow Color / Background / SizeArrow styling.White on 50% black, 40px
PositionSides, below the stack or above the stack.Below Stack
Spacing and offsetsSpace above and below, and horizontal and vertical offsets for side arrows.—
Arrow BordersArrow border and radius.—
Tips & FAQ

Good to know

Can I use an ACF gallery field?

Yes. The Images control accepts a dynamic gallery, so you can connect a gallery field from ACF or a similar plugin.

Can I show posts or products?

Yes. Set Source to Query, choose a global block for the card design, and set up the query. The second demo on this page shows products.

How many images do I need?

At least two. The stack only animates when there are two or more cards.

Can visitors go back a card?

Yes. Swiping or dragging to the right, or the left arrow, brings the previous card back to the top.

Does it work on phones?

Yes. Swipe is on by default, and width and height can be set per breakpoint.

Add Stacked Gallery to your next page

Stacked Gallery is included with Phox Elements, along with 150+ other premium elements for Breakdance.