React carousel components
8 carousel componentsLive previewFull source in your repo
Swipeable rails, card decks and infinite marquees, each with keyboard stepping and snap already handled. Install one and the source is yours to change.
Works with
- React
- Next.js
- TypeScript
- Tailwind CSS
React carousels and 3D carousels
From a standard accessible carousel to a cylindrical photo rail with inertia. Each ships with pointer, keyboard and touch input already wired.
- CarouselCarouselA React carousel with swipe, arrow keys, looping, and autoplay that pauses on hover, plus dots, thumbnails, and a progress bar for each slide.
Orbital Image CarouselDrag a cylindrical photo rail with snapped inertia, keyboard stepping, and depth-aware parallax on every face.
Tinder-Style Swipe CardsTinder-style swipe cards where the top card flicks off under your thumb and the one underneath rises in real time.
Card Stack CarouselA React card stack carousel on Framer Motion: each photo drops out below the pile, slips behind it and rises to the back.
Cover Flow CarouselA 3D Cover Flow album carousel where side cards swing into the center and a mini player below follows the track.
3D Image CarouselPortrait cards line the inside of a curved wall, smallest at the center and larger toward each side. Drag or hover to turn.
Infinite marquees and logo sliders
Not everything that moves sideways needs arrows. These loop on their own, for logos and other content that is a texture rather than a list.
Range and comparison sliders
The other two things a React slider can mean: a range input for picking a value, and a handle you drag to wipe between a before and an after image.
- SliderSliderA React range slider on Base UI with one or two thumbs, a value bubble that shows while dragging, formatted values, and a minimum thumb gap.
Gooey Range SliderDrag the thumb and the filled track stretches with it, then the thumb contracts into a circle when you let go.
Image Comparison SliderDrag the handle to wipe between before and after images with absolutely zero lag.
Scroll driven alternatives to a carousel
When the content is a sequence the page should walk through, scroll can do the stepping: cards that stack as you scroll, a pinned frame sequence, a video scrubbed by the scrollbar, and animated tabs.
Scroll StackCards that pin, tilt, and stack into a tidy deck as you scroll, with zero scroll hijacking anywhere in the sequence.
Apple-Style Sticky ScrollA pinned cinematic section that morphs in lock-step with scroll, staying perfectly in sync whichever way you travel.
Scrubbable Video RevealAn Apple-style image sequence scrubbed frame by frame on canvas, following your hand as you scroll in either direction.
Animated TabsA physical stack of photo cards shuffled to the front by clipped tabs, with a tight image inset and copy in the footer.
React image gallery components
Galleries that move without being a carousel: a fanned card stack, a hover row, a throwable photo collage, and cards that expand on hover.
Fan Hover Card StackHover a stacked profile deck and watch the cards fan outward in sequence while the active one lifts to the front.
Hover Image GalleryHover a card in the fanned artwork row and it rises to the front, showing a colored pill with that card's title.
Infinite Image CollageGrab and throw a photo collage. Frames wrap with no seam, then glide to a stop.
Expanding CardsHover a tall editorial strip and it opens wide, the rest of the row holding as tight vertical slivers of the same image.
How to choose a React carousel or slider
A carousel shows a set of items one or a few at a time and lets the visitor step through the rest. A slider usually means the same thing in a React context, though the word also covers range inputs, so this page lists both. The pattern has a bad reputation and most of it is earned: an auto rotating hero carousel of marketing messages gets ignored, because people learn to skip anything that moves on its own and only the first slide is ever really seen.
A carousel works when the items are equivalent and the visitor is browsing rather than being sold to. Product images, gallery photos, testimonials and logos fit that description. A row of feature explanations does not, because hiding four of five behind an arrow means most people read one. The test is simple: if you would be unhappy for someone to see only the first item, do not put it in a carousel.
The interaction model is the next choice. The base Carousel is the predictable one, with arrows, dots, looping, autoplay and keyboard stepping, and it is the easiest to make accessible. Tinder-Style Swipe Cards is better on touch and weaker with a mouse. Orbital Image Carousel is a drag rail with inertia that feels the best of the three and asks the most of the user, because nothing on screen says drag me until they try.
A 3D carousel trades predictability for presence. Cover Flow Carousel swings side covers into the centre in CSS 3D, 3D Image Carousel lines portrait cards along the inside of a curved wall that turns as you drag, and Card Stack Carousel drops the front card away and promotes the rest of the deck. Use one where the gallery is the product, such as an album, a portfolio or a lookbook, and use the flat carousel everywhere else.
Autoplay deserves more thought than it gets. If a carousel moves without being asked, it has to pause on hover, pause on keyboard focus, and stop for good once the user interacts, otherwise it pulls a slide away mid read. It also has to stop advancing when the visitor has asked for reduced motion. An infinite marquee is the one place continuous motion is fine, because the logos in it are a texture and nobody is trying to read a particular one.
Most React carousel libraries, Embla, Swiper and Slick among them, give you an engine and leave the styling and markup to you. The carousels here go the other way: each is one file you own, built on Framer Motion, with the markup, the motion and the controls already written. That suits a team that wants to change how the carousel looks and moves without learning a plugin API.
The accessibility work is the part worth not rebuilding. A carousel needs arrow key stepping, a live region announcing the current slide, focus that never lands on an off screen item, and controls that are real buttons rather than styled divs. The off screen focus problem is the one most hand rolled carousels miss, because it only appears when you tab through the page instead of clicking.



