Svelte Carousel screenshot

Svelte Carousel

Author Avatar Theme by Vadimkorr
Updated: 3 Apr 2023
293 Stars

The awesome carousel component for Svelte 3 :arrow_left: :art: :arrow_right:

Product Analysis: Svelte Carousel

Overview

Svelte Carousel is an awesome carousel component for Svelte 3. It is a client-side library that can be used with SvelteKit.

Features

  • Arrows: Enables next/prev arrows
  • Infinite: Infinite looping
  • Initial Page Index: Page to start on
  • Duration: Transition duration (ms)
  • Autoplay: Enables autoplay of pages
  • Autoplay Duration: Autoplay change interval (ms)
  • Autoplay Direction: Autoplay change direction (next or prev)
  • Pause On Focus: Pauses autoplay on focus
  • Autoplay Progress Visible: Shows autoplay duration progress indicator
  • Dots: Current page indicator dots
  • Timing Function: CSS animation timing function
  • Swiping: Enables swiping
  • Particles To Show: Number of elements to show
  • Particles To Scroll: Number of elements to scroll

Installation

  1. Install svelte-carousel as a dev dependency.
  2. Extend kit in svelte.config.js to include the vite property.
  3. Import and use the carousel component.
  4. Extend optimizeDeps.include in vite.config.js.
  5. Import and use the carousel component.

Summary

Svelte Carousel is a feature-rich carousel component for Svelte 3. It provides various customization options such as arrows, infinite looping, autoplay, and more. The installation process is straightforward and can be easily integrated with SvelteKit.