Feature

Heroes

A hero can cycle through up to twelve photos. Pick a transition, a pace and which controls to show. The first photo is in the page’s HTML, the rest load when they are about to show, and a single photo stays a plain still.

Things to try

Hover or tab in

The timer waits while the mouse is over a hero, while keyboard focus is inside it and while the tab is hidden.

Pause it

The last hero on the page has a pause button, which is how a page meets WCAG 2.2.2. Press it, then Play.

Swipe on a phone

On a touch screen a horizontal swipe moves one photo, controls or not.

Turn on reduced motion

With the system setting on, slideshows start paused and zoom and swipe fall back to a fade.

Full-screen hero: zoom in

Three photos, 4 seconds each, with a slow zoom in. Controls are set to None and the pause button is off, so nothing sits over the photos. The copy is in the centre slot, so any blocks can go there.

Full-screen hero

Three photos, a slow zoom in.

Image hero: swipe

Each photo slides in from the side, 4 seconds apart, and the slideshow wraps from the last photo to the first. No controls and no pause button.

Image hero

Three photos that swipe across.

Split hero: fade, beside the copy

The pictures sit next to the copy and fade into each other, and each picture keeps its alt text. With controls on, they sit under the pictures.

Split hero

Three pictures that fade into each other, beside the copy.

Snowy peaks above a sea of cloud at sunset

A calm slideshow: a slow fade

Five seconds per photo with the transition speed on Slow, so one photo melts into the next.

Calm hero

Photos change slowly, with nothing to click.

A single photo stays a still

With only a single photo there is no navigation row and no script on the page. It is the same block, so adding a second photo in the editor turns it into a slideshow.

One photo

A single photo stays a still: no controls, no script.

Every control on

Arrows, dots and the pause button. Anything that moves by itself for more than 5 seconds needs a way to stop it (WCAG 2.2.2), so the pause button is on by default; the heroes above turn it off for a cleaner look.

Every control

Arrows, dots and a pause button. Swipe, click or press Pause.

How this page is built

  1. Add a Hero (Image, Split or Full-screen) from the Hero group in the block picker.
  2. Under Photos, add up to twelve. Each has a focus point, so the crop stays on the subject.
  3. Once there are two or more, the slideshow settings appear: Transition (fade, zoom in, zoom out, swipe or cut), Seconds per photo, Transition speed, Controls and Pause button.
  4. Set Seconds per photo to 0 for a slideshow that only moves when a visitor uses the controls.
  5. Publish. The editor never advances by itself, but its controls work for checking each photo.