Best matchAuto Text Effect Animation
Build a timed text animation that updates one character at a time.
Build the text effect →Build an image slider with HTML, CSS, and JavaScript while practicing setTimeout and click events.
In this project, we’re going to build an image slider using HTML, CSS, and JavaScript. You’ll see how to move between items and keep the active content synchronized. Along the way, you’ll practice setTimeout, click events, and DOM selection, so you can understand how the interface and JavaScript logic work together.
Recommended knowledge: Basic HTML and CSS, JavaScript functions and callbacks, Browser timers, JavaScript variables and number operations.
This project uses timed JavaScript updates.
index.html<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Image Slider</title>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta2/css/all.min.css"
integrity="sha512-YWzhKL2whUzgiheMoBFwW8CKV4qpHQAEuvilg9FAn5VJUDwKZZxkJNuGM4XkWuk94WCrrwslk8yWNGmY1EduTA=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="slider-container">
<div class="image-container">
<img src="https://picsum.photos/id/237/500/300" alt="image" />
<img src="https://picsum.photos/id/1/500/300" alt="image" />
<img src="https://picsum.photos/id/10/500/300" alt="image" />
<img src="https://picsum.photos/id/20/500/300" alt="image" />
<img src="https://picsum.photos/id/200/500/300" alt="image" />
</div>
<i class="fas fa-angle-double-left btn prev"></i>
<i class="fas fa-angle-double-right btn next"></i>
</div>
<script src="index.js"></script>
</body>
</html>
Practice setTimeout, javaScript calculations, and conditional logic with these related projects.
Best matchBuild a timed text animation that updates one character at a time.
Build the text effect →
Calculate the current time and keep the display updated.
Build a digital clock →
Control a loading animation with timed conditional updates.
Build a loading bar →
Build a timed text animation that updates one character at a time.
Build the text effect
Calculate the current time and keep the display updated.
Build a digital clock
Control a loading animation with timed conditional updates.
Build a loading bar