https://github.com/shubham10divakar/react-sd-gallery
A customizable React gallery library that provides an immersive image viewing experience with features like lazy loading, lightbox with zoom and pan, customizable transition effects, image captions, fullscreen mode, thumbnail navigation, autoplay slideshow, and mobile gesture support.
https://github.com/shubham10divakar/react-sd-gallery
carousel-component gallery javascript react reactcomponents reactjs reactlibrary
Last synced: 3 months ago
JSON representation
A customizable React gallery library that provides an immersive image viewing experience with features like lazy loading, lightbox with zoom and pan, customizable transition effects, image captions, fullscreen mode, thumbnail navigation, autoplay slideshow, and mobile gesture support.
- Host: GitHub
- URL: https://github.com/shubham10divakar/react-sd-gallery
- Owner: shubham10divakar
- Created: 2024-07-25T06:26:12.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-06T06:41:05.000Z (almost 2 years ago)
- Last Synced: 2025-10-20T08:35:00.072Z (8 months ago)
- Topics: carousel-component, gallery, javascript, react, reactcomponents, reactjs, reactlibrary
- Language: JavaScript
- Homepage:
- Size: 16.3 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://badge.fury.io/js/react-sd-gallery)
React Sleek Design Gallery is a customizable React gallery library that provides an immersive image viewing experience with features like lazy loading, lightbox with zoom and pan, customizable transition effects, image captions, fullscreen mode, thumbnail navigation, autoplay slideshow, and mobile gesture support.
## NPM
NPM Link - https://www.npmjs.com/package/react-sd-gallery?activeTab=readme
## Features
1. Lazy Loading: Load images as they appear in the viewport, improving performance.
2. Lightbox: Display images in a full-screen overlay with zoom and pan capabilities.
3. Customizable Transition Effects: Switch between images with various transition effects like fade and slide.
4. Image Captions: Show captions on image hover or inside the lightbox.
5. Fullscreen Mode: View images in fullscreen with a simple toggle.
6. Thumbnail Navigation: Quickly navigate through images using thumbnail previews.
7. Autoplay Slideshow: Automatically transition through images at a user-defined interval.
8. Mobile Gesture Support: Navigate through images and control zoom with intuitive touch gestures.(In development)
## Installation
Install `react-sd-gallery` using npm or yarn:
```bash
npm install react-sd-gallery
```
or bash
```
yarn add react-sd-gallery
```
## Usage
Here's an example of how to use the library in your React application:
jsx
```
// App.js
import React from 'react';
import { Gallery } from 'react-sd-gallery';
const images = [
{
src: 'path/to/image1.jpg',
alt: 'Image 1',
thumbnail: 'path/to/thumbnail1.jpg',
alt_thumbnail: 'Thumbnail 1',
caption: 'This is image 1'
},
{
src: 'path/to/image2.jpg',
alt: 'Image 2',
thumbnail: 'path/to/thumbnail2.jpg',
alt_thumbnail: 'Thumbnail 2',
caption: 'This is image 2'
},
// More images...
];
const MyGallery = () => (
);
export default MyGallery;
```
# Props
- images: An array of image objects, each containing:
- src: The main image source.
- alt: Alt text for the main image.
- thumbnail: (Optional) Thumbnail image source.
- alt_thumbnail: (Optional) Alt text for the thumbnail.
- caption: (Optional) Caption text for the image.
- autoplayTime: (Optional) Interval time in milliseconds for the autoplay slideshow.
## Images as per above code output and some work samples





## Contribution
Contributions are welcome! Please submit a pull request or open an issue to suggest improvements or report bugs.
This is still in development hence suggest improvements.
## About Me
I am Subham Divakar and I am the developer of multiple python and react libraries.
Check out my worksamples on my portfolio site.
## Connect with Me
LinkedIn: https://www.linkedin.com/in/subham-divakar-a7420a12a/
GitHub: https://github.com/shubham10divakar
Portfolio: https://shubham10divakar.github.io/showcasehub/
## Feedback
Your feedback is important! Please share your thoughts and suggestions.
License
This project is licensed under the MIT License.