Carousel (Slider) made with Vanilla Javascript

Опубликовано: 22 Май 2026
на канале: CSE Workshop
118
8

In this tutorial I have shown you guys how to make a UI component called "Carousel" (A.K.A. Slider). The idea is pretty basic, imagine being stationary in front of a carousel. Each time the carousel rotates you will see a new horse (content in our case). And when you get to the end of the carousel you will be in front of the first horse again.



Links for the images :
Image 1 : https://www.pexels.com/photo/closeup-...
Image 2 : https://www.pexels.com/photo/carousel...
Image 3 : //Photo by Salma Smida from Pexels (I could not find the image link)

Link for the code : https://drive.google.com/file/d/1QOzg...


Stay safe, and always keep learning.