Create a Carousel With JavaScript, HTML And CSS | JavaScript Project For Beginners

preview_player
Показать описание
Today we're going to create a carousel with JavaScript, HTML and CSS. in this tutorial you're going to learn a lot of things as a beginner, especially in JavaScript.

Like always, in my tutorials I go first and see the logic behind the code using illustrations that will help the beginners to follow along easily and understand the logic behind every line of code. and after that I'll type in the code and build the project together.

What is a carousel?
The carousel is a slideshow for cycling through a series of content, built with CSS transforms and JavaScript. It works with a series of images, text, or custom markup. It also includes support for previous/next controls and indicators.

If you want to follow along with me when I type in the code, you'll need to download the starter template from GitHub.
-----------------------------------------------------------------------------------------------------
| LINKS |
-----------------------------------------------------------------------------------------------------

DOWNLOAD SOURCE CODE + STARTER TEMPLATE:

🌍 Social Media Links.

💲 Suppport the Channel
Рекомендации по теме
Комментарии
Автор

🚨 Big Announcement! 🚨

Hey everyone! I've made a big decision for this channel—I've turned off ads on all my videos! That's right, you can now enjoy all my content ad-free! This means I'm earning $0 from ad revenue, but I believe this is the right move to make your viewing experience better.

If you find my content valuable and want to support my work, there are several ways you can help:

Like & Share: Simply liking the video and sharing it with friends helps a lot!
Subscribe & Hit the Bell: Stay updated and never miss a new video.
YouTube Thanks: Use the "Thanks" button below to send a one-time donation.
Join the Channel Community: Get exclusive perks and behind-the-scenes content.

Every little bit counts and goes directly to creating more high-quality content for you all. Thank you so much for your continued support!

Let’s keep growing and learning together! 🌟

CodeExplained
Автор

I love the way he explains things in detail and even shows diagrams for it, thank you for this! You deserve more subscribers.

kode
Автор

This Chanel is probably the best one I found yet for begginers in javascript, highly recomended to everyone, thanks for your videos :)

joaquingarcia
Автор

Great! The BEST video tutorial I have ever seen. Very nice and understandable explanation.

alexhitchins
Автор

thank you soooo much for this omg it was easy to follow and understand too!! thank you so much!!

leslievelvy
Автор

The code master is back. I can't wait to have time, to stay at my desk with some popcorn near me and visual studio code opened, and to enjoy this video, as always. 👍

RACAPE
Автор

Wonderfull presentation, you have put great effort to make this happen, you deserve more views. keep going.

prasadmadushan
Автор

Pratical and useful, tiny little project ! Its exactly what I looking for as a newbie! Awsome !

chanray
Автор

i had been using owl carousel, But getting to know the inner working opens up lot of Possibilities, Thanks for en-lighting US

sayedakbarali
Автор

even my mom can learn html css and js through your tuts. You well explain the logic behind the code.

caremyok
Автор

Hey, I have been waiting for the tutorial for a long time. Thanks for this Carousel tutorial.

allancoder
Автор

I love explanation thank you so much you are the best YouTuber i like you

goleinc
Автор

Thanks even though I can create carousel it's good to see the tutorial to do it in correct manner. If you can extend to touch and make it to class it will be good.

bikramchettri
Автор

thanks for such great value JS totorials, please keep providing more ..( is there any JS ES6 long tutorial ?) thanks

samirsamir
Автор

Wow, thanks for such a practical explanation and walkthrough of building a carousel from scratch. I'm trying to build my own at the moment and am using this as the primary resource. I just had some quick questions... I noticed on my browser that the images display differently on chrome compared to Firefox, is there any reason why this might be so? They look a lot smaller in Firefox, and the carousel doesn't fit as much of the images in.

I'm also wondering if you could recommend any resources for learning how to add a play and pause feature to this script, e.g. one that runs automatically until hitting pause?

Thanks again for such an instructive and insightful video. I've just subscribed :)

michaeldevlin
Автор

Thank you for your great tutorial. It's really helpful especially after watching Kevin Powel's carousel tutorials.
I have a question. please someone help me. when you click "right" arrow, I think it should be " carousel.style.transform = `translateX( + ${position} )`; instead of translateX( - ${position} ). Because if you click "left" arrow, carousel should move to translateX(+ ${position} ). I think I'm missing

aya
Автор

Thank you for this tutorial.
I got an error that says "cannot read property 'children' of null".
This is in relation to the line "let dots=[...nav.children];"
Could someone tell me how to go about it?

mitalichakradeo
Автор

In 1.05.19 minute I got next error slides[index].slyle.left = slideWidth * index + 'px'; //Cannot set property 'left' of undefined

dimalukashenko
join shbcf.ru