Content Slider turns any blocks into a slider or carousel — each slide is a container you can fill with images, text, buttons, or whole layouts. It runs on a lightweight, no-jQuery engine (no bundled library), with slide, fade, and coverflow effects, autoplay, arrows, pagination, drag/swipe, and an optional click-to-zoom lightbox.
How to add
Open the block inserter, switch to the Axiom Blocks category, and click Content Slider (hover it for a live preview). It drops in with a couple of starter slides. Select a slide and add whatever blocks you want inside it; use the block toolbar to add or remove slides.
Layout
Effect
- Slide — the classic horizontal (or vertical) track
- Fade — slides cross-fade in place
- Coverflow — a 3D, depth-stacked carousel
Orientation switches between Horizontal and Vertical for the slide and coverflow effects.
Slides per view and scrolling
- Slides per view — one slide at a time or several side by side, set per device
- Slides to scroll — how many slides advance per step
- Gap between slides — space separating them
- Slider height — a fixed height for the frame
- Adaptive height — the slider grows and shrinks to fit the current slide instead of holding a fixed height
Behaviour
- Autoplay — with an Autoplay delay, Pause on hover, and an optional play/pause button for accessibility
- Loop — wrap around from the last slide to the first
- Draggable / swipe — pointer and touch dragging, on by default
- Transition speed — how fast each slide animates
- Lightbox on click — images inside slides open in a full-screen zoom view, with arrow-key and Esc navigation
Navigation
- Show arrows — previous/next controls, with Arrow side spacing to push them in or out from the edge
- Show pagination — choose Dots, a Fraction (
2 / 6), or a Progress bar - Spacing above pagination — the gap between the slides and the pagination row
- Space between dots — dot-to-dot spacing
Arrow and dot colors live in Styles, not here.
The sidebar at a glance
The block sidebar is split into two tabs. Settings is what the slider does; Styles is how it looks, organised by the parts you can see.
| Tab | Section | Covers |
|---|---|---|
| Settings | Layout | Effect, orientation, slides per view, slides to scroll, gap, height, adaptive height |
| Settings | Behaviour | Autoplay, loop, drag, transition speed, lightbox |
| Settings | Navigation | Arrows, pagination style, spacing |
| Settings | Advanced | Visibility, Position, anchor, CSS class |
| Styles | Container | The slider frame |
| Styles | Arrows | The previous/next buttons |
| Styles | Dots | The pagination dots |
| Styles | Spacing | Padding and margin on the outer wrapper |
Styling
Rows marked with a state selector carry extra states — pick the state at the top of the row and set a value for it.
| Part | Rows |
|---|---|
| Container | Border, Radius, Shadow, Max width (per device) |
| Arrows | Color, Background, Radius — Color and Background with Normal / Hover |
| Dots | Color with Normal / Active |
The block supports Wide and Full alignment from the toolbar and an HTML anchor. Motion is disabled automatically when the visitor prefers reduced motion.
HTML output
The ab-slider--slide|fade|coverflow and ab-slider--vertical modifier classes drive the effect and orientation; behavior is read from data-* attributes by the view script. Each slide keeps its own inner-block markup.
CSS custom properties
| Property | Controls |
|---|---|
--ab-slider-gap | Space between slides |
--ab-slider-height | Fixed slider height |
--ab-slider-arrow-color / --ab-slider-arrow-bg | Arrow color and background |
--ab-slider-arrow-color-hover / --ab-slider-arrow-bg-hover | Arrow hover state |
--ab-slider-arrow-offset | Arrow side spacing |
--ab-slider-arrow-radius-* | Arrow corner radius (tl, tr, br, bl) |
--ab-slider-dot-color / --ab-slider-dot-active | Dot resting and active color |
--ab-slider-pagination-gap | Space above the pagination row |
--ab-slider-dot-gap | Space between dots |
--ab-slider-bs / --ab-slider-bc / --ab-slider-bw | Container border style, color, width (per-side as --ab-slider-bw-top etc.) |
--ab-slider-radius | Container corner radius (per-corner variants also emitted) |
--ab-slider-shadow | Container box shadow |