merrygo-carousel
v2.0.0
Published
A lightweight, performant JavaScript carousel library
Maintainers
Readme
🎠 MerryGo
A lightweight, performant JavaScript carousel library
Spin your content with joy. Infinite loops, touch support and zero dependencies.
✨ Features
- 🎡 Infinite Loop - Seamless continuous scrolling
- 👆 Touch & Drag - Mobile-friendly swipe gestures
- 📱 Fully Responsive - Breakpoint-based configuration
- 🎨 Zero CSS Setup - Base styles are injected automatically; override anything with your own classes
- ⚡ Lightweight - Less than 10KB gzipped
- 🎯 Zero Dependencies - Pure vanilla JavaScript
- ♿ Accessible - ARIA attributes on arrows and pagination
- 🔄 Autoplay - Optional automatic sliding
🚀 Quick Start
CDN
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/merrygo.js"></script>NPM
npm install merrygo-carouselimport MerryGo from 'merrygo-carousel';🆕 What's new in 2.0
- Zero CSS setup: gallery, track, slides, arrows and pagination receive
merrygo-*classes and a base stylesheet injected once. Opt out withinjectStyles: false. - Fractional
slidesVisible: show 1.5, 2.5 or 3.2 slides to hint that there is more content, also insidebreakpoints.
Upgrading from 1.x? Read the migration guide.
📚 Documentation
For complete documentation including all options, methods, breakpoints, styling and advanced examples:
🌐 Browser Support
- Chrome / Edge 80+
- Firefox 75+
- Safari 14.1+ (iOS 14.5+)
- Android Chrome
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
Made by Matheus Braga
Inspired by the timeless joy of merry-go-rounds 🎠
