Kinetic Carousel
Web (React)
A modern, physics-based carousel that supports dragging, infinite looping, and 3D perspective transitions.
A modern, physics-based carousel that supports dragging, infinite looping, and 3D perspective transitions. Excellent for testimonials, feature spotlights, or image galleries.
Fast Setup
Drop into any Next.js project and instantly see results with zero configuration.
Fluid Animations
Physics-based transitions that feel natural and responsive to user input.
Themeable
Automatically adapts to your light and dark mode Tailwind configurations.
Accessible
Built-in keyboard navigation and ARIA attributes for screen readers.
Fast Setup
Drop into any Next.js project and instantly see results with zero configuration.
Fluid Animations
Physics-based transitions that feel natural and responsive to user input.
Installation
CLI
npx @modus-ui/cli add kinetic-carouselManual
- Copy the code from the component tab.
- Create a file at
components/ui/kinetic-carousel.tsx. - Paste the code.
Usage
tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
items | ReactNode[] | [] | Array of React elements to display as slides. |
baseWidth | number | 320 | The total width of the carousel container in pixels. |
autoplay | boolean | false | Whether the carousel should automatically cycle. |
autoplayDelay | number | 3000 | The delay in milliseconds between automatic slide transitions. |
pauseOnHover | boolean | false | Whether to pause autoplay when the user hovers over the carousel. |
loop | boolean | false | Whether the carousel should infinitely loop from the last slide back to the first. |
Comments