A simple, responsive image gallery that allows users to scroll horizontally through a collection of images using buttons or the mouse wheel. Smooth scrolling ensures an engaging user experience.
-
Horizontal Scrolling:
Scroll through the images using either the mouse wheel or navigation buttons. -
Smooth Scrolling with Buttons:
TheNext
andBack
buttons enable smooth scrolling by fixed increments. -
Responsive Design:
The gallery adapts to various screen sizes, making it accessible on different devices.
https://sudhanshu-ranjan-patra.github.io/Gallary/
- Clone this repository:
git clone https://github.com/your-username/image-gallery.git
- Navigate to the project directory:
cd image-gallery
- Open
index.html
in a browser to view the gallery.
|-- index.html # Main HTML file
|-- style.css # CSS file for styling the gallery
|-- images/ # Folder containing images and button icons
|-- README.md # Project documentation
-
Scroll with Mouse Wheel:
Use the mouse wheel to navigate horizontally through the images. -
Use Navigation Buttons:
Click on the Back and Next buttons to scroll left or right by a fixed amount (600px).
The JavaScript code handles scrolling via mouse wheel and button clicks:
-
Mouse Wheel Scroll:
The gallery scrolls horizontally when the user moves the mouse wheel up or down. -
Button Click Scroll:
Clicking the Back or Next button scrolls the gallery smoothly by 600px.
- HTML5 for structuring the gallery.
- CSS3 for styling and layout.
- JavaScript for adding interactive functionality.
- Add captions for images.
- Implement an autoplay feature for the gallery.
- Add a zoom-in effect when hovering over images.