Opens in a new tab

Gallery Expand Row

Templates2 minutes readUpdated 3 Oct 2026

This article documents

Gallery Expand Row Pro

Gallery · CSS only

A centred italic heading over a row of tall picture strips. The strip under the pointer widens to show a gradient, a code, a title and a button, and stays open until another one is chosen.

Requires: nothing. The opening is done with native Bricks Interactions and the movement with CSS, so the template needs no companion script and no library.

How it works#

  • Each Item has two interactions for each of Mouse enter, Click and Focus: remove data-active from every item in the Row (targeted by its element ID), then set it on itself. Open the element’s Interactions tab to see them.
  • The item with data-active is 384px wide and shows its details; the others are 80px. Item 2 carries the attribute on load.
  • Items can be reached with the Tab key (tabindex="0"), so the keyboard opens them too.
  • As the page loads every strip grows in from 40px by 320px in 0.3s. The arrow of the button straightens on hover.

What you replace#

In the structure panelWhat to do
Heading, LeadYour words
Item 1 to Item 8Picture, Code, Title (the second word is in italics) and the link of the Button. Duplicate an item to add one: its interactions come with it.
Button (arrow straightens on hover)Your link

The pictures are ordinary Bricks Image elements, so Bricks’ Import pasted images/SVGs setting handles them when you paste. Replace them with your own.

Layout and breakpoints#

The strips share the row and shrink to fit when there is not enough room. At 991px the open title wraps at 168px. At 767px items 5 to 8 hide (their Display: none is set at that breakpoint) and the heading drops from 60px to 48px.

Classes#

Global classes with typed settings: bxg24-item, bxg24-img, bxg24-shade, bxg24-info, bxg24-code, bxg24-title, bxg24-button. The class bsfy-g24 on the section holds the open state, the load animation, the button arrow, the focus ring and reduced motion; the call to action carries the plain class bxg24-cta.

Reduced motion#

The strips open and close without animating and the load animation is off.