Production-Ready GSAP Carousel

A seamless horizontal carousel component with smooth infinite scrolling, responsive design, accessibility features, and extensive customization options.

View on GitHub

See It In Action

Experience the smooth, seamless scrolling with touch support and responsive behavior.

Powerful Features

Everything you need for a production-ready carousel solution.

High Performance

Optimized for speed with GSAP's powerful animation engine

🔄

Seamless Infinite Loop

Smooth continuous scrolling without visible resets or jumps

📱

Responsive Design

Configurable breakpoints with different items per viewport

👆

Touch & Mouse Dragging

Optional drag-to-scroll with momentum and inertia

⏯️

Autoplay Control

Configurable automatic advancement with pause/resume

🎯

Navigation Controls

Previous/next buttons with full keyboard support

🔘

Pagination Dots

Visual indicators with click-to-navigate functionality

Accessibility Ready

Full ARIA support and screen reader compatibility

🎨

Center Mode

Option to center the active slide in the viewport

Performance Optimized

Debounced updates and efficient DOM manipulation

Quick Start

HTML
<div id="carousel-container">
  <div class="slide">Slide 1</div>
  <div class="slide">Slide 2</div>
  <div class="slide">Slide 3</div>
</div>
JavaScript
const carousel = horizontalLoop("#carousel-container", {
  responsive: {
    0: { items: 1 },
    768: { items: 2 },
    1024: { items: 3 }
  },
  speed: 1.2,
  gap: "20px",
  draggable: true,
  autoplayDelay: 3
});

Ready to Get Started?

Download the production-ready carousel and start building amazing experiences.

📚 View Documentation