A reusable and accessible image carousel built with React and Vite.
- Auto-play with configurable interval
- Pause on hover and touch
- Previous and next navigation buttons
- Indicator dots
- Keyboard arrow navigation
- Swipe support for mobile devices
- Lazy loading of images
- Accessible with ARIA attributes and live announcements
- Fully reusable via props
imagesautoPlayintervalshowDotsshowArrows
tabIndex="0"to make the carousel focusable- Arrow key navigation
aria-labelon buttonsaria-current="true"on the active dotaria-live="polite"to announce slide changes- Visible focus outlines
- React
- Vite
- CSS
- GitHub Repository: https://github.com/AMRIsoja/image-carousel
- Live Demo: https://image-carousel-five-roan.vercel.app/