Opens in a new tab

Circular Slider

Templates4 minutes readUpdated 1 Oct 2026

This article documents

Circular Slider Pro

Slider · GSAP + Draggable

Sixteen cards spaced around one large circle, of which you see only the top slice. They ride a gentle crest, curve away as you drag, and settle on the nearest one.

Requires: GSAP core, Draggable, InertiaPlugin.

How many cards it wants#

The cards sit at equal angles around a single circle, so the angle between neighbours is 360 divided by however many there are. The radius is then derived from the count, which is what makes the circle close exactly and stops neighbours colliding.

The consequence is worth knowing before you cut cards: few cards means a large step. Six cards put neighbours 60 degrees apart, which is a wheel, not a crest. Around twelve is the lower end of where the effect still reads as intended. Sixteen is what ships.

Adding cards is free — duplicate one and the geometry recomputes.

What you replace#

In the structure panelWhat to do
Card 1 - Tennis balls … Card 16 - Portrait studyYour content. The names are there so you can find the right one.
Image (replace with an Image element)A styled placeholder block, not a picture. Delete it and put a Bricks Image element in its place, keeping the bxc-circ__media class.
The captionsYour words
Previous button / Next buttonRestyle freely, but keep data-bxc-prev / data-bxc-next — that is how the script finds them.

There are no photographs in this template, so there is nothing to import and nothing pointing at our server.

Classes#

The stage carries bxc-circ (structure and script) and bxc-circular-slider (which tells the companion plugin to load the component). The layout lives in the bsfy-circular-slider global class on the section, so it travels with the paste and the scroll-snap row works without the plugin; the plugin adds the circle.

The controls live outside the clipped stage, in bxc-circ-wrap — that is deliberate, because the stage clips sideways and buttons inside it would be cut off.

The script reads .bxc-circ__ring, .bxc-circ__card, [data-bxc-prev] and [data-bxc-next].

Tuning#

On the stage element, under Attributes:

AttributeShippedWhat it does
data-duration0.6How long a snap to the next card takes
data-gap-ratio0.4Spacing between cards, as a fraction of card width
data-spread1How far around the circle the cards spread
data-max-arc30Maximum arc, in degrees, the visible crest covers
data-autoplay0Seconds between automatic advances. 0 is off.

Two more are read but not shipped: data-crest (default 0.35), how pronounced the curve is; and data-gap, an absolute spacing in pixels that overrides data-gap-ratio entirely. Prefer the ratio — it is what keeps the circle geometrically identical at every screen size, because the spacing shrinks with the cards instead of staying put and flattening the crest.

The stage also carries data-bx-fit, role, aria-label and tabindex. The first is used by our own preview and has no effect on your site. The other three make the slider reachable and announced properly — leave them.

Restyling#

The section's padding is an element setting in the panel, at the base width and at mobile landscape.

The bsfy-circular-slider global class on the section carries the layout, and its tunable values sit at the top of it as custom properties, which is the point: sixteen cards, one place to change them.

PropertyDefaultWhat it does
--bxcirc-card-w260pxCard width. 200px below 767px.
--bxcirc-media-h340pxHeight of the picture area. 260px below 767px.
--bxcirc-card-bgvar(--color-surface)Card fill
--bxcirc-card-border1px solid var(--color-border)Card border
--bxcirc-card-radiusvar(--radius-card)Card corners
--bxcirc-caption-colorvar(--color-ink)Caption colour
--bxcirc-btn-bg, --bxcirc-btn-color, --bxcirc-btn-bordersurface, ink, borderThe previous and next buttons
--bxcirc-accentvar(--color-accent)Button hover fill and focus ring

Card width feeds the circle's geometry, so changing it changes the radius too. That is intended: the circle stays closed.

Without JavaScript#

A horizontal scroll-snap row, with or without the plugin. Real, usable, swipeable, and every card and caption is there. The circle is the enhancement; the row is the design underneath it.