<div class="carousel rounded-box" items="[object Object] [object Object] [object Object] [object Object] [object Object]">
<div alt="text alt" class="carousel-item"> <img src="https://picsum.photos/id/400/400/300" alt="text alt" /></div>
<div class="carousel-item"> <img src="https://picsum.photos/id/401/400/300" alt="" /></div>
<div class="carousel-item"> <img src="https://picsum.photos/id/402/400/300" alt="" /></div>
<div class="carousel-item"> <img src="https://picsum.photos/id/403/400/300" alt="" /></div>
<div class="carousel-item"> <img src="https://picsum.photos/id/404/400/300" alt="" /></div>
</div>
@!jrmc.carousel({ items: [
{ url: 'https://picsum.photos/id/400/400/300', alt: 'text alt' },
{ url: 'https://picsum.photos/id/401/400/300' },
{ url: 'https://picsum.photos/id/402/400/300' },
{ url: 'https://picsum.photos/id/403/400/300' },
{ url: 'https://picsum.photos/id/404/400/300' },
] })
Doc : daisyui carousel
Carousel show images or content in a scrollable area.
Class name | Type | |
---|---|---|
carousel | Component | Container element |
carousel-item | Component | Carousel item |
carousel-center | Modifier | Snap elements to center |
carousel-end | Modifier | Snap elements to end |
carousel-vertical | Responsive | Vertical carousel |