Skip to main content

The Image Slider (Large, Captions) component allows you to present a rotating series of images with optional captions. Authors can customize the slider with different navigation options, alignment settings, autoplay, and draggable features. This component works best when authors use a series of large images that are the same size.

Example

  • statue

    This is a caption

  • cup

    This is a caption

    This is some caption body text

  • chair

    This has a caption body but no heading

Caption Options

Text Alignment

  • statue

    Text Alignment: Left

  • cup

    Text Alignment: Center

  • chair

    Text Alignment: Right

Text Color

  • statue

    Text Color: Light

  • chair

    Text Color: Inherit

Overlay

  • statue

    Overlay: None

  • cup

    Overlay: Dark

  • chair

    Overlay: Light

Location

  • statue

    Location: Top

  • chair

    Location: Bottom

Hide on Mobile

The hide on mobile setting for captions is useful when captions are long, as they can sometimes be cut off or obscure the entire image on smaller screens. Enabling this option ensures a cleaner and more user-friendly experience on mobile devices by hiding captions when space is limited.

  • statue

    Hide on Mobile: On

    On small screen sizes, this caption should be hidden.

  • chair

    Hide on Mobile: Off

    On small screen sizes, this caption should be visible.

Slider Settings

Center

  • statue

    Center: On

  • chair

    Center: On

  • statue

    Center: Off

  • chair

    Center: Off

Finite

The finite option stops the slider at the last image, requiring users to navigate back manually. The infinite option loops images continuously but requires at least 3 images to function properly; with fewer images, the loop won’t work correctly.

  • statue

    Finite: On

  • cup

    Finite: On

  • chair

    Finite: On

  • statue

    Finite: Off

  • cup

    Finite: Off

  • chair

    Finite: Off

Arrows

Arrows allow users to navigate to the previous or next image in the slider. Since arrows can sometimes be difficult to see depending on the background, we offer different color options.

  • statue

    Arrows: On

  • cup

    Arrows: On

  • chair

    Arrows: On

  • statue

    Arrows: Off

  • cup

    Arrows: Off

  • chair

    Arrows: Off

Arrow Colors

  • statue

    Arrow Colors: Inherit

  • cup

    Arrow Colors: Inherit

  • chair

    Arrow Colors: Inherit

  • statue

    Arrow Colors: Light

  • cup

    Arrow Colors: Light

  • chair

    Arrow Colors: Light

Dots

Dot navigation displays small dots below the slider, indicating the number of images and highlighting the currently active one. This provides users with a quick way to see their position in the slideshow and select specific images. Different color options are available to ensure the dots are visible and fit the design.

  • statue

    Dots: On

  • cup

    Dots: On

  • chair

    Dots: On

  • statue

    Dots: Off

  • cup

    Dots: Off

  • chair

    Dots: Off

Dot Colors

  • statue

    Dot Colors: Inherit

  • cup

    Dot Colors: Inherit

  • chair

    Dot Colors: Inherit

  • statue

    Dot Colors: Light

  • cup

    Dot Colors: Light

  • chair

    Dot Colors: Light

Draggable

The draggable option allows users to swipe or drag through images in the slider using their mouse or finger. This feature is particularly useful on touch devices, as it provides a more interactive and intuitive way for users to browse the images.

  • statue

    Draggable: On

  • cup

    Draggable: On

  • chair

    Draggable: On

  • statue

    Draggable: Off

  • cup

    Draggable: Off

  • chair

    Draggable: Off

Autoplay

The autoplay option automatically cycles through images in the slider without user interaction. It’s useful for showcasing content in a hands-off way, particularly when you want to highlight multiple images in a sequence. For a smooth user experience, it’s recommended to set the autoplay interval long enough to give users time to view each image before it changes.

  • statue

    Autoplay: On

  • cup

    Autoplay: On

  • chair

    Autoplay: On

  • statue

    Autoplay & Pause on Hover: On

  • cup

    Autoplay & Pause on Hover: On

  • chair

    Autoplay & Pause on Hover: On

Autoplay Interval

  • statue

    Autoplay Interval: 1500 (1.5 seconds)

  • cup

    Autoplay Interval: 1500 (1.5 seconds)

  • chair

    Autoplay Interval: 1500 (1.5 seconds)

  • statue

    Autoplay Interval: 4000 (4 seconds)

  • cup

    Autoplay Interval: 4000 (4 seconds)

  • chair

    Autoplay Interval: 4000 (4 seconds)

  • statue

    Autoplay Interval: 7000 (7 seconds, default)

  • cup

    Autoplay Interval: 7000 (7 seconds, default)

  • chair

    Autoplay Interval: 7000 (7 seconds, default)

  • statue

    Autoplay Interval: 10000 (10 seconds)

  • cup

    Autoplay Interval: 10000 (10 seconds)

  • chair

    Autoplay Interval: 10000 (10 seconds)

  • statue

    Autoplay Interval: 15000 (15 seconds)

  • cup

    Autoplay Interval: 15000 (15 seconds)

  • chair

    Autoplay Interval: 15000 (15 seconds)

Margin Bottom

  • statue

    Margin Bottom: None

  • chair

    Margin Bottom: None

  • statue

    Margin Bottom: X-Small

  • chair

    Margin Bottom: X-Small

  • statue

    Margin Bottom: Small

  • chair

    Margin Bottom: Small

  • statue

    Margin Bottom: Medium

  • chair

    Margin Bottom: Medium

  • statue

    Margin Bottom: Large

  • chair

    Margin Bottom: Large

  • statue

    Margin Bottom: X-Large

  • chair

    Margin Bottom: X-Large

the end

Margin Top

  • statue

    Margin Bottom: None

  • chair

    Margin Bottom: None

  • statue

    Margin Bottom: X-Small

  • chair

    Margin Bottom: X-Small

  • statue

    Margin Bottom: Small

  • chair

    Margin Bottom: Small

  • statue

    Margin Bottom: Medium

  • chair

    Margin Bottom: Medium

  • statue

    Margin Bottom: Large

  • chair

    Margin Bottom: Large

  • statue

    Margin Bottom: X-Large

  • chair

    Margin Bottom: X-Large

the end

Usage

Do

  • Ensure all images used are high quality and of the same size for a smooth, consistent experience.
  • Add clear, concise captions if they help to provide context or additional information about the images.
  • Select a navigation style (arrows, dots, or both) that best suits your audience’s needs and the design of the page.
  • Consider enabling autoplay for sliders that are meant to display a sequence of images without user interaction.
  • Use the alignment option (center or left) that fits well with your overall page layout and design.
  • Test the slider on mobile and desktop to ensure it works well across devices.
  • Enable draggable interactions if you expect users to interact with the slider on touch devices.
  • Set a reasonable autoplay interval to give users enough time to view each image.
  • Keep the number of images manageable to avoid overwhelming users or slowing down the page.

Don't

  • Don’t use images with drastically different dimensions, as this can make the slider appear uneven and disjointed.
  • Avoid overcrowding the slider with too many images, which can overwhelm users and affect performance.
  • Don’t rely solely on captions to convey important information; ensure the images themselves communicate the main message.
  • Avoid using autoplay if your images contain detailed content that requires longer viewing time.
  • Don’t set the autoplay interval too short, as it may frustrate users by switching images too quickly.
  • Don’t use low-resolution or blurry images, as this can make your content look unprofessional.
  • Avoid making the captions too long, as they may obscure the images or make the slider feel cluttered.

Accessibility

  • Ensure that you provide suitable alt text for images. Alt text for images enhances web accessibility by offering a textual description for screen readers used by visually impaired users. See the a11yproject website for more information about writing alt text for images.