File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Image Slider
2+
3+ ## ✅ Objective:
4+ Create an image slider that allows users to navigate through multiple images using Previous and Next buttons.
5+
6+ ## 💡 Concepts Practiced:
7+ - DOM manipulation (` getElementById ` )
8+ - Event handling with ` addEventListener `
9+ - Dynamic image updates
10+ - CSS styling and transitions
11+ - Responsive design using media queries
12+
13+ ## 📘 What I Learned:
14+ - How to create a simple image slider using JavaScript.
15+ - How to dynamically change the ` src ` attribute of an ` <img> ` element.
16+ - How to add smooth fade-in/out transitions between images.
17+ - How to make the slider responsive on different screen sizes.
18+ - Handling circular navigation (looping from last to first and vice versa).
19+
20+ ## ▶️ Example Flow:
21+ 1 . Open the webpage → the first image appears in the slider.
22+ 2 . Click ** Next** → moves to the next image with a smooth fade-in effect.
23+ 3 . Click ** Previous** → moves to the previous image with fade effect.
24+ 4 . The slider loops infinitely: after the last image → returns to the first, and before the first → goes to the last.
You can’t perform that action at this time.
0 commit comments