Sépale
Components Docs Theme generator Prefix About GitHub npm
  • Family
  • Family
  • Theme

  • Guide
  • Getting started
  • Families and themes
  • Components and classes
  • Svelte components
  • Motion
  • Your own styles
  • Class prefix
  • Family
  • Description
  • Theme generator
  • Components
  • All components
    • Button
    • Link
    • Join
    • Input
    • Textarea
    • Select
    • Combobox
    • Number input
    • Date picker
    • Calendar
    • Color picker
    • File input
    • File dropzone
    • Checkbox
    • Radio
    • Toggle
    • Switch
    • Range
    • Rating
    • Chips input
    • Editable
    • Label
    • Floating label
    • Fieldset
    • Validator
    • Text
    • Avatar
    • Badge
    • Chip
    • Swatch
    • Bubble
    • Card
    • Stat
    • Carousel
    • Alert
    • Toast
    • Loading
    • Progress
    • Radial progress
    • Skeleton
    • Empty state
    • Data handler
    • Data control
    • Table
    • Grid
    • List
    • Kanban
    • File explorer
    • Menu
    • Tabs
    • Breadcrumbs
    • Steps
    • Pagination
    • Dock
    • Navbar
    • Sidebar
    • Drawer
    • Footer
    • Hero
    • Divider
    • Collapse
    • Accordion
    • Dialog
    • Dropdown
    • Tooltip
    • Mobile frame
    • Window frame
    • Laptop frame

Carousel

A row of items that scrolls and snaps natively, with optional arrows over it, upcoming items and a pagination under it. Items may differ in size: the carousel measures them. The Svelte component draws one item per entry of `items`; the index is never bound — `goto` / `prev` / `next` move, `onindex` tells (ADR 0011).

ClassEffectType
.carousel
A row of items that scrolls and snaps natively, with optional arrows over it, upcoming items and a pagination under it. Items may differ in size: the carousel measures them. The Svelte component draws one item per entry of `items`; the index is never bound — `goto` / `prev` / `next` move, `onindex` tells (ADR 0011). root
.carousel-start.carousel-center.carousel-end
Sets align, one class per value.
  • .carousel-center An item comes to rest in the middle — with several visible, the neighbours peek in.
  • .carousel-end An item comes to rest at the end of the track.
  • .carousel-start An item comes to rest at the start of the track.
axis align
.carousel-vertical
Items go up and down; the arrows sit at the top and the bottom. flag
.carousel-item
One item. As wide as the track, unless `--carousel-item-width` says otherwise (`auto`: the item sizes itself). part
.carousel-next
The cell the next arrow is drawn in, over the end of the track. part
.carousel-pagination
The cell under the track the pagination is drawn in. part
.carousel-prev
The cell the previous arrow is drawn in, over the start of the track. part
.carousel-track
The scrolling, snapping row. Focusable, so the arrow keys move through it. part
.carousel-upcoming
The row of upcoming items under the track. part
.carousel-upcoming-item
One upcoming item: a button drawing the item again at `--carousel-upcoming-size`. part