Skip to main content

Carousel

A flexible, touch-friendly carousel/slider. Each slide can carry an image, heading, text and button. Supports multiple slides per view, autoplay, loop, arrows and dots (built on Splide). Tabs: Slides, Layout, Behavior, Style, Animations, Advanced.

💡 Web dev tip: use carousels sparingly

Studies repeatedly find most visitors only ever see the first slide, so don't bury anything important on slide three. If it auto-plays, give people a visible pause control and don't advance too fast — and make sure the arrows and dots work with a keyboard. W3C: carousel pattern

Live demo​

▶ See the Carousel / Slider live on the demos site — an interactive example you can click through.

Slides​

Carousel / Slider options panel — Slides tab
  • Slides — a repeatable list; each slide has an Image, Heading, Text and a Button (label + link). Each slide also has:
    • Focal Point: the part of the photo that stays in view when it is cropped for tablets and phones (Top Left … Center … Bottom Right).
    • Tablet & Phone Image: optional, a different photo for tablets and/or phones, set with the device switcher. Empty = crop the slide's own photo automatically.

Per-device images​

A slider photo is usually landscape, but on a phone a tall hero box is portrait. Without a crop, the phone picks its file by the box's width and stretches it, which looks soft. Crop Slides on Smaller Screens (Layout tab) fixes that: pick a shape per device with the device switcher, for example Phone: Portrait 3:4 and Tablet: Landscape 4:3. Every slide is then cut to that shape around its Focal Point, and each device downloads a file made for its own screen. Large desktops always show the photo as it is.

  • Same as the larger screen (the default) inherits; Original shape means no crop.
  • Pick the shape closest to the slider's box on that device: about 9:16 for a full-height phone hero, 3:4 for a shorter one.
  • For a photo that does not crop well (a wide panorama, a subject at the edge), set that slide's Tablet & Phone Image instead.

The first slide loads straight away with a preload hint per device, so phones fetch the phone crop first. Later slides load just before they are shown. How it works for developers: Responsive images.

Layout​

Carousel / Slider options panel — Layout tab
OptionChoices
Per Page (Desktop)1–6 slides per view
Per Page (Tablet)1–6 slides per view (≤992px)
Per Page (Mobile)1–6 slides per view (≤576px)
Gap Between SlidesCSS length (e.g. 1rem)
Use as Section BackgroundOn/Off — fill the parent Section behind its content (see below)
Crop Slides on Smaller ScreensPer device (Desktop / Tablet / Phone): Same as the larger screen, Original shape, 16:9, 3:2, 4:3, 1:1, 4:5, 3:4, 2:3, 9:16 — see Per-device images
Slide HeightFixed height (e.g. 600px, 80vh) or empty to fit content
ArrowsOn/Off
DotsOn/Off

Behavior​

Carousel / Slider options panel — Behavior tab
OptionChoices
AutoplayOn/Off
Autoplay Interval (ms)Default 5000
Transition Speed (ms)Default 600
Pause on HoverOn/Off
LoopOn/Off
Drag / SwipeOn/Off
TransitionSlide, Fade (with Fade, Loop goes back to the first slide)
Slow ZoomOn/Off — background images drift slowly closer while their slide shows

What autoplay does when nobody is watching​

Two things happen automatically, and neither is an option you need to set.

An off-screen carousel stops advancing. This matters more than it sounds, because slides after the first are only fetched when the carousel reaches them. An autoplaying hero therefore keeps pulling full-bleed photos for as long as the page is open — including long after the reader has scrolled well past it — and those downloads queue ahead of the images further down the page that the reader is actually scrolling toward. On a measured site the hero carousel accounted for 1.6 MB against 260 KB for every other image on the page, with slides still arriving ten seconds in while the reader was several screens down.

So once the carousel leaves the viewport it pauses, and resumes if the reader comes back. A visitor who scrolls straight past a five-slide hero now fetches two slides instead of five. Nobody sees a difference — the animation they were not watching is simply not happening.

A visitor who has asked for reduced motion gets no autoplay at all. If their system is set to Reduce motion, the carousel holds on the first slide. Arrows, dots and swiping all still work, so nothing becomes unreachable — this is what WCAG 2.2.2 asks for from anything that moves on its own.

Both behaviours need no configuration and have no setting to turn off. On a browser without IntersectionObserver the carousel simply behaves as it always did.

Use as a section background​

Turn on Layout → Use as Section Background and the carousel fills the whole Section it sits in, behind that Section's own heading, text and buttons, which are lifted on top automatically. It is the way to make a hero with a calm, changing photo backdrop:

  1. Add a Section and give it a min-height (for example 90vh), so it has room to fill.
  2. Put your heading, text and buttons in it as usual.
  3. Add a Carousel to the same Section with your photos as slides. Leave each slide's own heading, text and button empty (the Section's content is what shows on top).
  4. Turn on Use as Section Background, set Transition to Fade, turn on Autoplay and Loop, and, for a gentle drift, Slow Zoom. Use the Dark Overlay if the photos make the text hard to read.

In background mode the slides cover the Section one at a time and play on their own: Slides per View, Gap, Slide Height, Arrows, Dots, Drag and Pause on Hover are ignored. The first photo loads right away with high priority (it is usually the largest image on the page); each of the others loads just before it is shown, and every photo comes in the size the screen needs (a phone gets a small version, not the original upload). Pick photos from the Media Library so those sizes exist, and don't also set the same photo as the Section's background image: it would load twice.

Lighter than a background video

A background "video" that only fades between a few photos costs several megabytes. The same photos as a background carousel weigh a fraction of that, look sharper, and you can swap them in the editor at any time. Keep a real video for real motion.

Limits: the background takes no clicks or swipes (the Section's content stays clickable). The slow zoom is switched off for visitors whose system asks for reduced motion.

Style​

Carousel / Slider options panel — Style tab

Dark Overlay (On/Off) and Overlay Strength (0–90%) for legibility over images, plus Heading Color and Text Color.