JavaScript carousel libraries

Updated Nov 2026

JavaScript carousel libraries show a row of slides that people swipe, drag, or click through one at a time. A carousel tracks the active slide and moves the track when that slide changes. These libraries build the image galleries, product sliders, and testimonial rotators on marketing sites and storefronts.

Popularity

Embla Carousel has the most monthly downloads in this comparison, at 119.0M.

LibraryMonthly downloadsStarsLast releaseLicense
embla-carousel
119.0M
8.5KApr 2025MIT
Bootstrap
30.4M
175.1KNov 2026MIT
Swiper
21.1M
41.9KOct 2026MIT
react-slick
7.3M
11.9KAug 2025MIT
react-bootstrap
6.6M
22.6KMay 2025MIT
@zag-js/carousel
6.5M
5.3KNov 2026MIT
slick-carousel
5.7M
28.5KSep 2026MIT
React Responsive Carousel
4.6M
2.7KMar 2022MIT
Downloads: npm, last thirty days. Stars and releases: GitHub. Amber: no release in over a year.

Features compared

LibraryReact requiredjQuery requiredAutoplay
embla-carouselUnsupportedUnsupportedVia plugin
BootstrapUnsupportedUnsupportedBuilt-in
SwiperUnsupportedUnsupportedBuilt-in
react-slickBuilt-inUnsupportedBuilt-in
react-bootstrapBuilt-inUnsupportedBuilt-in
@zag-js/carouselUnsupportedUnsupportedBuilt-in
slick-carouselUnsupportedBuilt-inBuilt-in
React Responsive CarouselBuilt-inUnsupportedBuilt-in
Built-inVia pluginNot supported

Libraries and code examples

embla-carousel

Provides a carousel API for scrolling, focus handling, and responsive layout updates.

Downloads / mo
119.0M
Stars
8.5K
Last release
8.6.0
License
MIT

Strengths

  • Scrolls focused slides into view. Focus events trigger scrolling to the focused element.
  • Updates when slide sizes change. Size changes automatically trigger carousel reinitialization.

Limitations

  • Short content disables looping. Embla turns loop off when slide content cannot form a loop without visible glitches.
  • RTL needs matching content direction. Set the HTML dir attribute or CSS direction alongside the carousel option.
From open-source projects on GitHub

Includes a carousel component that cycles through images, text, or custom markup.

Downloads / mo
30.4M
Stars
175.1K
Last release
5.3.9
License
MIT

Limitations

  • Needs manual initialization. Initialize each carousel with its constructor so touch and swipe events attach.

Quickstart

From carousel
$ npm install bootstrap@5.3.9
const carousel = new bootstrap.Carousel('#myCarousel')

Bootstrap examples

From open-source projects on GitHub
export function slideTo(element, index) {
	const c = bootstrap.Carousel.getInstance(element);
	if (c) {
		c.to(index);
	}
}

Provides configurable touch sliders with navigation, pagination, and animation modules.

Downloads / mo
21.1M
Stars
41.9K
Last release
14.4.0
License
MIT

Strengths

  • Navigates slides with the keyboard. Enable the keyboard module to move between slides.
  • Adapts layout at breakpoints. Change visible slide counts and spacing for different screen sizes.

Limitations

  • Looping needs enough slides. Match slide counts to slidesPerView and slidesPerGroup before enabling loop.
  • Breakpoints cannot change every option. Set loop and effect outside breakpoint overrides.

Quickstart

From get-started
$ npm install swiper
<link rel="stylesheet" href="./node_modules/swiper/swiper-bundle.css">
<div class="swiper"><div class="swiper-wrapper">
  <div class="swiper-slide">One</div><div class="swiper-slide">Two</div>
</div></div>
<script type="module">
import Swiper from "./node_modules/swiper/swiper-bundle.mjs";
new Swiper(".swiper");
</script>

Swiper examples

From open-source projects on GitHub

Provides a React carousel component ported from Slick.

Downloads / mo
7.3M
Stars
11.9K
Last release
0.31.0
License
MIT

Limitations

  • Styles come from slick-carousel. Install slick-carousel and import its CSS for the default look.

Quickstart

From README.md
$ npm install react react-dom react-slick slick-carousel
import Slider from 'react-slick';
import 'slick-carousel/slick/slick.css';
import 'slick-carousel/slick/slick-theme.css';
export default function App() {
  return <Slider><div>One</div><div>Two</div></Slider>;
}

react-slick examples

From open-source projects on GitHub

react-bootstrap

Provides the Bootstrap carousel as a React component with controlled or uncontrolled slide state.

Downloads / mo
6.6M
Stars
22.6K
Last release
2.10.10
License
MIT

Quickstart

From Carousel.tsx
$ npm install react-bootstrap bootstrap
import Carousel from 'react-bootstrap/Carousel';
import 'bootstrap/dist/css/bootstrap.min.css';

export default function Example() {
  return (
    <Carousel>
      <Carousel.Item><p>First slide</p></Carousel.Item>
      <Carousel.Item><p>Second slide</p></Carousel.Item>
    </Carousel>
  );
}

react-bootstrap examples

From open-source projects on GitHub

@zag-js/carousel

Provides carousel logic as a state machine that scrolls slides with native CSS Scroll Snap.

Downloads / mo
6.5M
Stars
5.3K
Last release
1.48.0
License
MIT
From open-source projects on GitHub

slick-carousel

Runs as a carousel plugin for jQuery.

Downloads / mo
5.7M
Stars
28.5K
Last release
2.0.0
License
MIT
From open-source projects on GitHub

React Responsive Carousel

Provides a React carousel with swipe, keyboard navigation, and autoplay.

Downloads / mo
4.6M
Stars
2.7K
Last release
3.2.23
License
MIT

Limitations

  • Not actively maintained. The maintainer has no time to maintain the package and suggests forking it.
From open-source projects on GitHub

FAQ

Loop mode requires enough slides relative to slidesPerView and slidesPerGroup, plus its grouping constraints.

It falls back to a non-looping carousel when content cannot form a loop without visible glitches.

For coding agents

Found your carousel library? Help your agent use it.

Connect Exa so your coding agent can find the library’s documentation, check its API, and look up implementations while you build.

Run in your terminal

claude plugin install exa@claude-plugins-official