Build an Image Slider

Goal: Build a slider that readers can operate with a keyboard or touch.
Time: About 6 minutes.
You need: A draft, permission to edit its blocks and suitable images in the Media Library.

Watch the walkthrough

Build two slides, choose a mobile crop, and verify readable text and keyboard controls. The narration is in English. Turn on captions in the player controls.

Steps

  1. In the draft's slot, add Slider. Add two Slide children and give each a short descriptive name. Set the slider controls and keyboard operation. Consider leaving autoplay off so readers control their own pace.
  2. Open the first Slide. Choose a Background Image and, if needed, a Mobile Image that keeps the same subject visible on a narrow screen. Use a Header child for a visible title. Give meaningful content a text equivalent and keep decorative backgrounds separate from the instructions.
  3. Set positioning and overlay as needed for contrast. Repeat for the second slide and save. In Preview, check the slide text and cropping at desktop and phone widths. Verify a mobile crop is selected when you configured one.
  4. Use Tab to reach the Next slide control and press Enter. Confirm the next slide appears and the focus remains usable. Check the previous control as well. If you enable autoplay, check that visitors can pause it.

Example

The demo uses two studio studies. The first has a portrait-friendly crop of the same paper study. Text is kept in separate blocks so screen readers can read it and it can be translated.

Related: Responsive media and sliders · Build a gallery