Building an Image Slider from scratch using HTML, JavaScript and CSS

Publié le: 16 octobre 2022
sur la chaîne: Code with Ahsan
1,739
38

In this video, I'm going to teach you how to build a fully functional Image Slider with HTML, CSS, and JavaScript without any external libraries or tools. We're going to build two variations of it.
In the first one, we build everything with a minimum CSS keeping only one img tag on the DOM. And we just change the src attribute of it to show the next image when clicking the next/previous arrows.
In the second variation, we keep all the img tags on DOM. But we show only one of them. We also add some animations for when an arrow is clicked. This will slide the current image off the screen, and slide in the next image from the appropriate direction using CSS Keyframes.

Code: https://github.com/code-with-ahsan/js...

00:00:00 - Intro
00:00:47 - First Variation - No animation and single IMG tag on DOM
00:25:20 - Second Variation - With CSS Keyframes and multiple IMG tags on DOM
00:59:17 - Outro


Sur cette page du site, vous pouvez voir la vidéo en ligne Building an Image Slider from scratch using HTML, JavaScript and CSS durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Code with Ahsan 16 octobre 2022, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 1,739 fois et il a aimé 38 téléspectateurs. Bon visionnage!