Back to Trending
RepositoryTypeScriptITItaly
Emiliano-Bucci

Emiliano-Bucci/react-spring-carousel

A new Carousel experience for the web.

74stars
5forks
9issues
1views

react-spring-carousel

A performant React carousel component powered by react-spring and @use-gesture.

NPM NPM

Install

// npm v7.x
npm install --save react-spring-carousel
// npm v6.x or less
npm install --save react-spring react-spring-carousel
yarn add react-spring react-spring-carousel

Usage

import { useSpringCarousel } from 'react-spring-carousel'

const { carouselFragment, slideToPrevItem, slideToNextItem } = useSpringCarousel({
  items: [
    {
      id: 'item-1',
      renderItem: <div>Item 1</div>,
    },
    {
      id: 'item-2',
      renderItem: <div>Item 2</div>,
    },
  ],
})

return (
  <div>
    <button onClick={slideToPrevItem}>Prev item</button>
    <div>{carouselFragment}</div>
    <button onClick={slideToNextItem}>Next item</button>
  </div>
)

Official documentation

For a complete overview of the library, please visit the official documentation.

Visit here

Similar Projects

Discover other similar projects and AI models.

RepositoryTypeScript
nolimits4web/swiper

Most modern mobile touch slider with hardware accelerated transitions

41.9k
Oct 30, 2026
RepositoryTypeScript
davidjerleke/embla-carousel

A lightweight carousel library with fluid motion and great swipe precision.

8.5k
Nov 1, 2026
RepositoryTypeScript
rcaferati/react-awesome-slider

A performant, lightweight React slider/carousel for media and content transitions, featuring 60fps animations, modular styling, optional HOCs, and fullpage navigation utilities. 🖥️📱

3.0k
Jul 13, 2026
RepositoryTypeScript
farbenmeer/react-spring-slider

A slider component for react

167
Sep 1, 2023
RepositoryTypeScript
freeCodeCamp/freeCodeCamp

freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.

459.9k
Dec 2, 2026
RepositoryJavaScript
react/react

The library for web and native user interfaces.

253.0k
Nov 30, 2026
RepositoryJavaScript
vercel/next.js

The React Framework

143.9k
Dec 1, 2026
RepositoryJavaScript
vercel/next.js

The React Framework

143.9k
Dec 1, 2026
RepositoryTypeScript
naver/egjs-flicking

🎠 ♻️ Everyday 30 million people experience. It's reliable, flexible and extendable carousel.

2.9k
Oct 29, 2026