@shelamkoff/carousel — Live Examples

Try the arrows, drag a slide, or focus the first carousel and use the arrow keys. Resize the page to explore responsive layouts.

1. Basic Carousel (arrows + dots + keyboard + swipe)

2. Multi-slide + perScroll: 'auto' (scrolls full page at once)

3. Infinite Loop + Autoplay (hover to pause)

Play or pause with the built-in button. The ring shows elapsed display time and freezes on hover, keyboard focus or pause.

4. Fade Transition

5. Thumbnails Navigation

6. Person Cards — Editor Style (infinite loop, custom theme)

7. Fixed perScroll (no loop, animation lock)

8. Infinite Loop + perScroll: 'auto' (drag scrolls full page)

9. Parallax (multi-slide + loop)

10. Fractional 2.5-slide Loop

11. Auto-height with responsive media

The loop follows the tallest slide as images resize and captions change.

12. Add, remove and remount slides

Change the collection while navigating, then destroy and recreate the carousel.

13. Lazy content

A slide is created when it becomes visible or enters the one-slide preload range.

14. Reveal transitions

Choose an effect to preview it. Use the arrows or drag to switch slides.

Link to this effect

All effects cover and reveal live slide content. Grid flip, Doorway and Water drop animate decorative panels and ripples. Custom iris demonstrates adding an effect through the public API.

15. Themes through CSS

Switch between light, dark and compact themes. The same carousel keeps its current slide while the controls, thumbnails and transition panels change.

16. Arrows on hover

Move the pointer over a slide to bring the arrows in from the sides, then move it away to hide them. Keyboard focus keeps the controls available. On touch devices, the arrows stay visible.

18. Expanding editorial cards

Inspired by an editorial carousel: the focused card grows, surrounding previews contract, and each heading shifts and scales continuously. Drag, click a preview, or use the arrows. Try the settings to change its proportions.

The navigation and caption motion share one timeline; Play/Pause, elapsed time, keyboard control and short loop replicas remain available.

19. Continuous gallery scrolling

Let the gallery glide at a constant speed. Choose its direction or pause it to explore a card. Hover, keyboard focus and dragging pause the movement.