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

Publicado em: 16 Outubro 2022
no canal de: 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


Nesta página do site você pode assistir ao vídeo on-line Building an Image Slider from scratch using HTML, JavaScript and CSS duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Code with Ahsan 16 Outubro 2022, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 1,739 vezes e gostou 38 espectadores. Boa visualização!