Infinite Scroll
Enable seamless looping with infinite: true. Swipe past the last item and it wraps back to the first — no jumps, no flicker. Works with drag, touch, autoplay, and arrow navigation.
Carousel Library
A lightweight carousel library for modern web applications
Enable seamless looping with infinite: true. Swipe past the last item and it wraps back to the first — no jumps, no flicker. Works with drag, touch, autoplay, and arrow navigation.
Extend functionality with built-in extensions: Arrows for navigation controls, Dots for pagination indicators, Thumbnails for preview navigation, Logger for debugging, and VistaView for full-screen image lightbox.
Open any carousel image in a full-screen lightbox with zoom, swipe, and keyboard navigation. Powered by the VistaView library.
Automatically adjust the number of columns based on container size. Configure different layouts for different container widths.
👉 Drag the edges to resize and see breakpoints in action!
Built-in right-to-left language support for Arabic, Hebrew, and other RTL languages.
Lightweight across the board. The core is under 15 kB, and every extension stays under 2 kB.
| Package | Size | Gzip |
|---|---|---|
| motionrail (ES) | 14.5 kB | 3.7 kB |
| motionrail (UMD) | 12.5 kB | 3.4 kB |
| motionrail (CSS) | 0.9 kB | 0.3 kB |
| arrows | 1.8 kB | 0.8 kB |
| dots | 1.3 kB | 0.7 kB |
| thumbnails | 1.6 kB | 0.8 kB |
| vistaview | 1.5 kB | 0.7 kB |
| logger | 0.6 kB | 0.3 kB |
Built June 27, 2026