Skip to the content.

← Back to Main Page

Experiment 3: Create an image slider using HTML, CSS, and JavaScript

This experiment demonstrates how to build an interactive image gallery with slider functionality.

Overview

In this experiment, we created an image gallery with the following features:

Implementation

The implementation is contained in a single HTML file that includes:

Key Features

How to Run

  1. Clone this repository
  2. Navigate to the Exp-3 directory
  3. Open index.html in your browser
  4. Make sure the image files (1.jpg, 2.jpg, etc.) are in the same directory

Preview

The gallery displays images in a grid, and when an image is clicked, it opens in a full-screen modal with navigation controls.

View Implementation

👉 See the live implementation of this image gallery.

Here’s a video tutorial:


Exp-1 Exp-2 Exp-3