Menu
All plugins

Item Strip for Bricks

A nestable Bricks element that shows a list of items as a strip that slides or fades. The items can be anything: quotes, figures, cards, images or other elements.

Version: 0.1.0 · Requires: WordPress 6.0+, PHP 8.1+, Bricks · See the live demo

What it does

  • Two movements: slide, using native scroll snapping so touch swipe works, and fade, one item at a time.
  • Shows one or more items at once when sliding, with a different count for medium and small spaces, measured on the element itself.
  • Arrows, dots and keyboard left and right keys. Controls hide when everything fits.
  • Optional autoplay, which pauses on hover and focus, while off screen, and for visitors who prefer reduced motion.
  • Works with query loops. Without script the items show as a plain list.

Installation

  1. Upload and activate the plugin. Bricks must be active.
  2. In the Bricks editor search for Item Strip (General group). It arrives with three sample items.

Quick start

  1. Edit the sample items, or replace what is inside them.
  2. Choose slide or fade, and how many items show at a time.

Using it in a loop, including an ACF repeater

The loop can be a post, term or user query, or a repeater such as an ACF repeater or a Meta Box group. For a repeater, choose it as the loop type on the item block, then use its sub-fields in the dynamic data. The demo includes an example built from an ACF repeater.

  1. Keep one item block (class is-item) and put the query loop on it.
  2. Use dynamic data inside it. Add the class is-card for a plain white card look.

Settings

  • Movement; Items in view, and the counts for under 720px and under 480px
  • Arrows, Dots, Loop around at the ends
  • Autoplay every (ms) — 0 is off; Fade time
  • Gap, item background, arrow and dot colours

Autoplay

Set Autoplay every to a number of milliseconds. The demo shows a slide strip that moves every 3 seconds and loops, and a fast fade with no controls for rotating short messages. Autoplay holds still while the pointer or keyboard focus is on the strip, and while it is scrolled out of view. It is off for visitors who prefer reduced motion. Using an arrow or dot takes over from autoplay.

Tips

  • In fade mode the strip is as tall as its tallest item, so nothing jumps.
  • Keep autoplay slow, or off, for anything people need to read.

Known limits

  • Items need a similar width in slide mode; they share the space equally.