Opens in a new tab

Focus List

Templates4 minutes readUpdated 5 Oct 2026

This article documents

Focus List Pro

Content · GSAP + ScrollTrigger

A dark list of services. On desktop every row rests dimmed and lights up under the pointer, while a preview with that row’s image and text slides to it. At 991px and below the list becomes an accordion: tap a row and its text opens under a [ + ] that turns into [ – ]. Rows fade in as they scroll into view.

Requires: GSAP core, ScrollTrigger.

Smooth scrolling#

The original smooths the whole page with Lenis. Here that is a site-wide choice, not part of the template: see Smooth scroll. The list works the same with it on or off.

Adding and removing rows#

Every bxf__item inside the list is a row, in order. Duplicate a row and it joins the hover preview and the accordion with nothing else to set.

To build the list from posts, enable a Query Loop on Row 1 - Hospitality (enable Query Loop here) and delete the other rows. The rows it outputs carry the same classes, so they behave exactly like the shipped ones.

What you replace#

In the structure panelWhat to do
Title in each rowYour words
Text (accordion body on tablet/mobile, preview text on desktop)Your words. On desktop this text is hidden in the row and shown in the preview.
Image (hidden, shown in the preview on hover)Your picture. It never shows in the row itself, only in the preview.
Toggle button (tablet and mobile) and the brackets inside itLeave them. The script sets aria-expanded, aria-controls and, if it has none, an aria-label from the row title.
Preview (filled from the hovered row, leave empty)Leave it. Preview image (swapped on hover, leave as is) and Preview text (copied from the hovered row) are overwritten from the hovered row.

Classes#

Root marker bxc-focus-list, plus three global classes: bsfy-focus-list on the section, which holds the layout, bsfy-focus-list-title on every title and bsfy-focus-list-text on every text. See The marker-class contract.

The script reads .bxf__list, .bxf__item, .bxf__title, .bxf__cross, .bxf__text, .bxf__img, .bxf__panel, .bxf__panel-media and .bxf__panel-text.

It adds is-live to the section once it runs, is-active to the open row of the accordion, and is-shown to the preview while it is visible. Only one row is open at a time, and the whole row is the tap target.

Tuning#

On the section, under Attributes:

AttributeShippedWhat it does
data-move-duration0.3Seconds the preview takes to slide to a row
data-revealtruefalse switches off the fade-in as rows scroll into view
data-reveal-duration0.8Seconds each row takes to fade in
data-reveal-stagger0.08Gap between rows fading in

Restyling#

The section padding, black background and white text colour are element settings in the panel. The title type is set in the bsfy-focus-list-title global class (38px, 24px at tablet portrait) and the text type in bsfy-focus-list-text (16px), so changing a class changes every row at once.

On bsfy-focus-list:

PropertyDefaultWhat it does
--bxf-rest.2Opacity of a row at rest. 1 at 991px and below, where nothing is dimmed.
--bxf-fade.3sHow long a row takes to light up. 0s makes it snap.
--bxf-pad20pxSide padding of the list. 16px at 991px and below.
--bxf-gap6pxGap between the 12 grid columns that place the title, preview image and preview text
--bxf-linethe text colour at 20%The dividing lines of the accordion

--bxf-in is written by the script for the fade-in. Do not set it by hand.

Images#

The row images and the preview image are all Image elements, so Bricks’ Import pasted images/SVGs setting brings them into your media library when you paste. See The images are missing, or they load from our server.

Without JavaScript#

On desktop the rows still light up on hover; there is just no preview. At 991px and below there is no accordion: every row shows its text open, and the [ + ] buttons are hidden.

Reduced motion#

No fade-in, no smooth scrolling, and rows light up without a fade. The preview jumps to the hovered row instead of sliding, and the accordion works as normal. See Reduced motion.