Skip to content

Commit 4e2af98

Browse files
authored
Create README.md
1 parent 7ea003d commit 4e2af98

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

task19-image-slider/README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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.

0 commit comments

Comments
 (0)