PhotoSwipe is a modular, mobile-friendly image gallery and lightbox. It provides smooth animations, touch gestures, and works on all modern browsers and devices. The library has official React bindings for easy integration.
- Touch gesture support (swipe, pinch-to-zoom, double-tap)
- Responsive and mobile-friendly
- Hardware-accelerated CSS3 transitions
- Keyboard navigation
- SVG-based UI controls
- Lazy loading
- Dynamic content support
- Video support through plugins
- Caption and share buttons
- Fullscreen mode
- Thumbnail navigation
- Deep linking support
- History API integration
- Customizable UI
- Modular architecture
- TypeScript support
- No dependencies
- Lightweight (~20KB gzipped)
- GPU-accelerated animations
- Efficient memory usage
- Lazy loads images
- Preloads adjacent images
- Official React hooks available
- Dynamic gallery updates
- Works with React Router
- SSR compatible
- Easy event handling
- Photo galleries
- Portfolio websites
- E-commerce product images
- Real estate listings
- Image-heavy blogs
- Art and photography sites
Free and open-source under the MIT license.