---
title: Build a slider
description: "Create a slider from banners or any blocks, with autoplay, arrows, and dots."
url: "https://flatsome.com/docs/build-a-slider"
lastUpdated: 2026-10-21
---

The **Slider** block turns any group of blocks into slides. Banners make hero sliders, images make carousels, and testimonials or product cards work just as well. Nothing is limited to images.

## Add a slider

1. Insert the **Slider** block and pick a starting point: **Slider**, **Hero Banners**, **Image Carousel**, or **Testimonials**.
2. Each direct child of the **Viewport** is one slide. Add **Banner**, **Image**, **Row**, or **Section** blocks to add slides, and duplicate a slide to keep its design.
3. Set a **Height** on the Viewport per breakpoint, or leave it to size by content.

## Slider settings

- **Type**: **Slide** or **Fade**.
- **Autoplay → Delay**: milliseconds between slides, up to 10 seconds. **Pause on Hover** stops it while the pointer is over the slider.
- **Loop** and **Draggable**: wrap around at the end and allow swiping.
- **Style**: **Container** keeps slides inside the content width; **Focus** dims the slides beside the active one.
- **Free scroll** for a more editorial feel.

## Several slides at once

For a carousel, set **Slide width** on the Viewport, for example 33% on desktop and 80% on phones, and add a **Gap**. **Slide alignment**, in the **Slide** panel of the Slider block, decides whether the active slide sits at the start, center, or end.

To let slides run past the edges of the slider, select the Viewport and set **Overflow** in the **Slides** panel to **Visible**. They then reach out to the edge of the screen, which suits carousels inside the content width. **Clip horizontally** keeps slides inside but lets their shadows show above and below.

## Arrows and dots

Arrows and dots are blocks inside the slider, so you place and style them yourself. Add two **Slider Button** blocks with **Direction** set to **Previous** and **Next**, choose a **Style** (Circle, Simple, or Reveal) and a **Position**, and set **Show** to **On hover** to keep them out of the way. Pick another arrow and its size in the **Icon** panel, style the button with the Border, Color, and Shadow panels, and add a **Hover** state under **Effects**. The **Dots** block works the same way with Circle, Dashes, Simple, or Square styles.

Gallery, Posts, Products, and Instagram blocks have a built-in slider mode with the same arrow and dot options under **Layout → Type → Slider**, so you do not need a separate Slider block for those.
