Infinite Carousel
A looping carousel that continuously scrolls through slides or images, ideal for dynamic showcases or testimonials.
Loading...
Installation
Usage
API
Drawer Props
For InfiniteCarousel Component
| Attribute | Type | Description | Default |
|---|---|---|---|
| children | ReactNode[] | Carousel items rendered in an infinite horizontal scrolling loop. Typically composed of InfiniteCarouselItem components. | - |
| speed | number | Scrolling speed of the carousel in pixels per second. | 50 |
| pauseOnHover | boolean | Pauses the carousel animation when the user hovers over it. | true |
| className | string | Additional CSS classes to customize the carousel container styling. | - |
For InfiniteCarousel Item
| Attribute | Type | Description | Default |
|---|---|---|---|
| children | ReactNode | Content displayed inside the infinite carousel item. | - |
| href | string | Optional navigation URL. When provided, clicking the item navigates to this link. | - |
| className | string | Additional CSS classes to customize the carousel item styling. | - |
Examples
Without Pause
Loading...
With Pause
Loading...
Credits
This component is inspired by Rehman Kalawant Design Shared On Github.