Skip to content
tastebase

tastebase

Sign in

Your agent gets your look, hearts and dislikes in every project. Folders follow you to every device.

We keep the name, avatar and email your provider shares. Nothing else.

Embla Carousel

free

Small, dependency-free carousel engine with great swipe physics; you bring all the markup and styles.

by David Jerleke GitHub npm
visit
Embla Carousel website

Try these

Swiper

Batteries-included touch slider with effects, virtual slides, thumbs and a11y modules.

shadcn/ui

Copy-in React components on Tailwind, built on Base UI, Radix or React Aria, plus a registry CLI.

Motion

The default animation library for React (formerly Framer Motion): springs, gestures, layout and exit animations.

@use-gesture

Hooks that turn pointer, wheel, pinch and scroll events into clean gesture state (offset, velocity, direction).

Looks that pick it

For your agent

Install
npm i embla-carousel-react
Use it for
  • a product image gallery with thumbnails
  • a horizontally swipeable row of cards on mobile
  • a testimonial or logo slider with autoplay (embla-carousel-autoplay plugin)
Skip it when
  • a simple horizontal scroll row: CSS overflow-x with scroll-snap needs no JS
  • you want 3D coverflow, cube or cards effects out of the box: use swiper
  • a hero auto-rotating banner: users miss rotating content; show one strong slide instead
What's inside23 free
  • useEmblaCarousel
  • Options
  • Methods
  • Events
  • Autoplay
  • Auto Scroll
  • Auto Height
  • Fade
  • Class Names
  • Wheel Gestures
  • Accessibility
  • SSR
  • Loop
  • Drag Free
  • Y-axis
  • Thumbnails
  • Parallax
  • Scale
  • Opacity
  • Progress
  • Lazy Load
  • Infinite Scroll
  • iOS Style Picker
Facts
Frameworks
react, vue, svelte, solid, vanilla
Styling
unstyled
Weight
small
Accessibility
weak
Maturity
established
License
MIT
Price
Free
Pairs with
Alternatives
import useEmblaCarousel from 'embla-carousel-react'

const [emblaRef, emblaApi] = useEmblaCarousel({ loop: true })

<div className="overflow-hidden" ref={emblaRef}>
  <div className="flex">
    {slides.map((s) => (
      <div className="min-w-0 shrink-0 grow-0 basis-full" key={s.id}>{s.content}</div>
    ))}
  </div>
</div>
Visit