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

Publicado el: 16 octubre 2022
en el 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


En esta página del sitio puede ver el video en línea Building an Image Slider from scratch using HTML, JavaScript and CSS de Duración hora minuto segunda en buena calidad , que subió el usuario Code with Ahsan 16 octubre 2022, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 1,739 veces y le gustó 38 a los espectadores. Disfruta viendo!