Build a React Image Slider with Tailwind CSS

  Рет қаралды 115,846

Code Commerce

Code Commerce

Күн бұрын

Пікірлер: 141
@vitorac412
@vitorac412 Жыл бұрын
If you are using next image component, just do this: const slides = [image, image, image] Im currently learning, so I think this can save some time for another people;
@Darkah
@Darkah Жыл бұрын
Im using Nextjs and i got the userState error, how to solve not using jsx and how to solve for non server renderation
@ad3098
@ad3098 10 ай бұрын
"use client"@@Darkah
@nixonmbeki5690
@nixonmbeki5690 2 ай бұрын
Used to think carousel required some esoteric knowledge until I went through this video. Massive thanks man.
@sumanthprabhu11
@sumanthprabhu11 Жыл бұрын
In Appu Indian Accent ->This was the Easiest Tutorial of a Carousel / Slider I have ever seen. Thanks to you and Tailwind CSS
@codecommerce
@codecommerce Жыл бұрын
Haha thank you!
@GiantSquid13
@GiantSquid13 9 ай бұрын
I love how you went straight to the point. Thank you so much
@manjeshkumarsharma4946
@manjeshkumarsharma4946 Жыл бұрын
Your Videos are amazing buddy. I just watched this video till 7 minutes after that I started making my own slider component. And after 1 hour of brainstorming I made it. Your git repository also helped a lot. THANKYOU SO MUCH
@mtsurov
@mtsurov Жыл бұрын
This is quickly becoming a book of useful recipes. In 18 minutes I learned what Udemy would stretch into 4 hour course. Well done.
@arhabersham
@arhabersham Жыл бұрын
Well to be fair to Udemy courses, consider that you were able to understand this in only 18 minutes because of all the background knowledge on the topic you already have. If you were a newbie, probably a 4 hours would had been necessary to understand the underlaying principles he is using here
@8koi245
@8koi245 Жыл бұрын
​@@arhabershamNah
@muhammadrizwan4879
@muhammadrizwan4879 Жыл бұрын
@@arhabersham indeed broh
@samuelreedy1389
@samuelreedy1389 Жыл бұрын
tried a bunch of different carousel packages for react/typescript, this tutorial smashes them all out of the park, with no dependencies either, nice
@CptSauce
@CptSauce 4 ай бұрын
Used SASS and dropped images in the folder instead of links. Added some more hover effects and my God, amazing. Great tutorial!
@ChillWebDeveloper
@ChillWebDeveloper 5 ай бұрын
aged like a wine. Appreciate what you have done chief!
@unamgege
@unamgege Жыл бұрын
Finally I was able to create an easily customizable react slider to showcase my beginner projects, thanks a lot !
@hiwotina26
@hiwotina26 Жыл бұрын
Love it when videos are short and useful.
@codecommerce
@codecommerce Жыл бұрын
Much appreciated! Skipping the fluff!
@BhargavTalpada-go3pl
@BhargavTalpada-go3pl 10 ай бұрын
thank you so much for making this amazing image slider using react & tailwind css
@ivanperez5231
@ivanperez5231 4 ай бұрын
Thank you so much. Great addition to my client's website.
@codecommerce
@codecommerce 4 ай бұрын
Great to hear!
@Dreamer_78
@Dreamer_78 Жыл бұрын
Ты один из лучших! Здоровья тебе родным и близким. Спасибо бро!
@iLuliBest
@iLuliBest Жыл бұрын
Thank you so much! Finally a clean and easy to read slider. 🙌🏼
@liuyan8066
@liuyan8066 Жыл бұрын
Glad to learn everything about Tailwind CSS! Thanks!
@codecommerce
@codecommerce Жыл бұрын
Love it thank you!
@carloschinyuku
@carloschinyuku Жыл бұрын
Powerful and amazing stuff, love it. Thanks, for the energy you put into these tutorials, very easy to follow and understand. Keep it up bro.
@thebigbangcoder
@thebigbangcoder Жыл бұрын
Thank you so much
@akhatorosakhogba2993
@akhatorosakhogba2993 3 ай бұрын
This is a really clever tutorial .
@onar1261
@onar1261 Жыл бұрын
Thank you man, very helpful and elegant solution
@antumallick1468
@antumallick1468 4 ай бұрын
Great Job Man!❤
@codecommerce
@codecommerce 4 ай бұрын
Thank you so much 😀
@1222medi
@1222medi Ай бұрын
this is simpe and effective thank you so much !
@zeus-yb1ds
@zeus-yb1ds Ай бұрын
useEffect(() => { const interval = setInterval(() => { setCurrentIndex((prevIndex) => prevIndex === slides.length - 1 ? 0 : prevIndex + 1 ); }, 7000); return () => clearInterval(interval); }, [currentIndex, slides.length]); Add this for autoslide after 7s...Feel free to edit the interval to desired time.
@himydv
@himydv Ай бұрын
thanks bro
@zeus-yb1ds
@zeus-yb1ds Ай бұрын
@@himydv you're welcome
@kirovreporting6767
@kirovreporting6767 Жыл бұрын
I had to login just to give proper props to you. It's incredible how much useful information we had in this video. Excellent didactic, straight to the point, I didn't even had to 2x the video speed - since most of YT like to waste a lot of our time with gimmick. props={toYou}
@codecommerce
@codecommerce Жыл бұрын
Thank you Kirov
@hookahthetravellingmonk
@hookahthetravellingmonk Жыл бұрын
Very good tutorial. I'm using the current next 13 and this works perfctly.
@codecommerce
@codecommerce Жыл бұрын
Glad it helped
@muhammadmursalin8915
@muhammadmursalin8915 6 ай бұрын
Excellent explained. Great work, go on💐💐
@emanuelmanrique9944
@emanuelmanrique9944 Жыл бұрын
It looks amazing, thanks!
@gatti311
@gatti311 Жыл бұрын
Thank you for this video, this will help a lot. These kinds of videos are really useful. It would be nice if you continue with these kinds of videos, where you just make some cool and modern component/part of the website.
@codecommerce
@codecommerce Жыл бұрын
Will do sir! Thank you
@refadhile
@refadhile Жыл бұрын
men thankyou, you are a hero
@codecommerce
@codecommerce Жыл бұрын
Thank you !
@Calathea-Z
@Calathea-Z Жыл бұрын
Really appreciated your video. Very helpful information! Great explanation!
@SaikotRoy-wb3go
@SaikotRoy-wb3go 5 ай бұрын
It was really simple and amazing video
@migla2000
@migla2000 Жыл бұрын
How should I import my own images and not the images from * ?
@youngun550
@youngun550 Жыл бұрын
Very cool, thanks so much for this great video!
@abedalraoufzeidan1461
@abedalraoufzeidan1461 10 ай бұрын
awesome tutorial highly recomended i got here from bard sugesstion
@ANAS4TOSTOBOY
@ANAS4TOSTOBOY Жыл бұрын
thanks
@Deus-lo-Vuilt
@Deus-lo-Vuilt Жыл бұрын
Nice , love tailwind and react
@codecommerce
@codecommerce Жыл бұрын
Hard to go back to writing out css haha
@tiagolourinho2638
@tiagolourinho2638 6 ай бұрын
You saved my day! Thx!
@jovanagluhovic3139
@jovanagluhovic3139 Жыл бұрын
Thank you very much sir. Great video. :)))
@Deepak-i9r8i
@Deepak-i9r8i Жыл бұрын
Ohh Bro U never disappoint, whenever I want to see something about react or Next js.. I find everything here😂❤
@codecommerce
@codecommerce Жыл бұрын
Thanks man!
@Nanashi-rq7lk
@Nanashi-rq7lk Жыл бұрын
Nice Video. This video is helpful for me
@skreddysasi3404
@skreddysasi3404 Жыл бұрын
Thanks for Sharing 🚀🔥
@thisiskartik
@thisiskartik Жыл бұрын
Really HelpFul Thanks A lot
@seun.daniel.omatsola
@seun.daniel.omatsola Жыл бұрын
Thanks a lot. This has helped me a lot
@Metovski
@Metovski Жыл бұрын
I like to watch short useful videos like that. I can create my own slider :D Thanx
@harihardhik3293
@harihardhik3293 4 ай бұрын
very well explained
@andreasiano5953
@andreasiano5953 11 ай бұрын
How did you add that smooth sliding when you press on the arrow?? Is it a tailwind class?
@juanhedderich
@juanhedderich Жыл бұрын
Hey dude, great video, learned a lot, but I have a question. Why make divs with the cursor-pointer class when you can just make buttons?
@heliolucio7691
@heliolucio7691 Жыл бұрын
Thank you!
@codecommerce
@codecommerce Жыл бұрын
Thanks dude!
@ltd5480
@ltd5480 Жыл бұрын
How did the transitions work? I’m using local files and how can I make that transition?
@rilynnaisa2942
@rilynnaisa2942 Жыл бұрын
Thank you for the tutorial! Very useful :D
@codecommerce
@codecommerce Жыл бұрын
Thank you!
@cgrbasantff8748
@cgrbasantff8748 Жыл бұрын
really really amazingvideo ever i see on youtube related carousel
@codecommerce
@codecommerce Жыл бұрын
Thanks!
@muhammadhabiburrahman3372
@muhammadhabiburrahman3372 Жыл бұрын
its really cool brother
@AKPist
@AKPist 6 ай бұрын
what if I want to use images instead of url? This gave me errors:
@iammtander
@iammtander Жыл бұрын
🚀🚀🚀 09:30 You rock, man!!
@codecommerce
@codecommerce Жыл бұрын
Awesome dude!
@wenceslaoavalos9643
@wenceslaoavalos9643 Жыл бұрын
Really helpful!
@psyferinc.3573
@psyferinc.3573 Жыл бұрын
awesome man thank s
@alihamoud6863
@alihamoud6863 Жыл бұрын
it is very useful, thanks sir.
@asifzulfiqar2517
@asifzulfiqar2517 Жыл бұрын
How to add a timer in it?
@lawrencemichael5571
@lawrencemichael5571 Жыл бұрын
This is really great but I was hoping you'd also include code to allow the dots to show where we are.
@besthealthyyou
@besthealthyyou Жыл бұрын
Here you go brother
@VietTranIT
@VietTranIT Жыл бұрын
Sleek. Thanks for the great tutorial.
@codecommerce
@codecommerce Жыл бұрын
Thanks for watching!
@abdulahad1571
@abdulahad1571 22 күн бұрын
Lovely 😍
@DevanshuAugusty
@DevanshuAugusty 14 күн бұрын
about the dots, what if there are 100 images?
@omageprosper9673
@omageprosper9673 Жыл бұрын
why didn't you use vite to setup your react project?
@codecommerce
@codecommerce Жыл бұрын
Vite is great too!
@VictorYazigi
@VictorYazigi 5 ай бұрын
is there a way for me to make the image shrink when i use it on mobile? it always fits 100% of the carousel div but i can't see the whole image
@betterbehappythannot3605
@betterbehappythannot3605 Жыл бұрын
Not connected to the video, but what freelance websites did you use to offer your services?
@hubesh716
@hubesh716 Жыл бұрын
sir plz make Ecommerce project with Tailwind css and Redux toolkit for state management and firebase for backend plz sir its my request..plz sir Ecommerce project like Amazone better ui design many things plz sir
@Metovski
@Metovski Жыл бұрын
Yes bro we want Tailwind & redux tool kit e commerce project.
@iammtander
@iammtander Жыл бұрын
True it is. @Code Commerce : A special request sir!!. React, redux tailwind with firebase as backen
@konradja4310
@konradja4310 Жыл бұрын
+1 guys :D
@iv9iv9
@iv9iv9 Жыл бұрын
That'd be nice
@yahyamohamoud7290
@yahyamohamoud7290 Жыл бұрын
that would be good but with context API and not Redux
@nogafouz2174
@nogafouz2174 Жыл бұрын
thanks for this video very useful😀
@codecommerce
@codecommerce Жыл бұрын
Most welcome 😊
@PeriklesPeriklesoglu
@PeriklesPeriklesoglu Жыл бұрын
thank you
@gousiyaart2515
@gousiyaart2515 Жыл бұрын
How use backend url Therefore not working in background image current index Please reply
@oppranto
@oppranto Жыл бұрын
Can you please explain the logic inside those two button?
@mehrdadmousavi9144
@mehrdadmousavi9144 Жыл бұрын
It was great :)) I have a question, suppose we have 4 SVGs instead of slides state, how can we loop through and show them?
@Smartercow
@Smartercow Жыл бұрын
What do you mean with SVG's instead of slides state? SVG is still an image.
@mehrdadmousavi9144
@mehrdadmousavi9144 Жыл бұрын
@@Smartercow In the video we have some unsplash links that he loop (map) them, I say suppose that we have 5 files (Svg, Jpg, ..) how can we loop and show them?
@Smartercow
@Smartercow Жыл бұрын
@@mehrdadmousavi9144 I suppose you have those 5 files local(your pc). You put them in images folder in the public folder: /public/images - but instead of the unsplash link, you use the file path without /public like this: /images/your_image_1.svg /images/your_image_2.svg /images/your_image_3.svg /images/your_image_4.svg /images/your_image_5.svg
@mehrdadmousavi9144
@mehrdadmousavi9144 Жыл бұрын
@@Smartercow Thank you so much, I'll try it
@CJTHEGAMER
@CJTHEGAMER Жыл бұрын
There's a way i can make the slides move automatically?
@lindsayaiello501
@lindsayaiello501 Жыл бұрын
I second this. Trying to figure out how to auto slide. Any luck yet?
@Mirrasim
@Mirrasim Жыл бұрын
Thank you, you good
@zakariaowen
@zakariaowen Жыл бұрын
Very useful
@danielflick3707
@danielflick3707 Жыл бұрын
how can i change the color of the active dot?
@rudrajoshi1948
@rudrajoshi1948 Жыл бұрын
I have a question if I want to make it slide on it's own then what changes can I do in the code?? I mean auto play along with buttons too
@navinkumarsahu1159
@navinkumarsahu1159 Жыл бұрын
one simple trick would be to use setInterval function
@rudrajoshi1948
@rudrajoshi1948 Жыл бұрын
@@navinkumarsahu1159 Thanks
@navinkumarsahu1159
@navinkumarsahu1159 Жыл бұрын
@@rudrajoshi1948 Just use swiper js and don't forget to import AutoPlay and add it to the modules array
@mohamadrezakazemian5220
@mohamadrezakazemian5220 Жыл бұрын
great video.
@hengratanak7633
@hengratanak7633 Жыл бұрын
thank you alot
@rafaelventura9819
@rafaelventura9819 Жыл бұрын
Excelent 👋
@ltd5480
@ltd5480 Жыл бұрын
Can I use instead to create that transition?
@codecommerce
@codecommerce Жыл бұрын
Sure thing
@oretasletters
@oretasletters Жыл бұрын
Bro forgot to give us the animation🙂
@jameskeita9657
@jameskeita9657 Жыл бұрын
thank u so much bro for u video & do u have video react with redux?
@codecommerce
@codecommerce Жыл бұрын
Thank you James - I haven't made a video with redux yet. I am looking to do that soon with a project.
@jameskeita9657
@jameskeita9657 Жыл бұрын
​@@codecommerce i will wait and it will be a good experience both for me and for others
@talhatahir461
@talhatahir461 Жыл бұрын
Please react video carousel.. there are many videos of image slider.. but a few and old videos of video slider
@codecommerce
@codecommerce Жыл бұрын
Same concept :) will do!
@try-b2k
@try-b2k Жыл бұрын
How can we add autoplay
@suraj4522
@suraj4522 7 ай бұрын
Build a react image slider with your gym trainer
@codecommerce
@codecommerce 7 ай бұрын
Haha thanks dude! 💪
@nahomfikadu
@nahomfikadu Жыл бұрын
It is not clear to see the codes
@peterrizek8774
@peterrizek8774 Жыл бұрын
How can i type in two tags at the same time ? like at 7:29
@codecommerce
@codecommerce Жыл бұрын
Hold down control or alt. One of those… lol
@juanpischetz4053
@juanpischetz4053 Жыл бұрын
I want to make a contribution, can I? make a few additions to make it reusable.
@codecommerce
@codecommerce Жыл бұрын
Absolutely
@netsaosa4973
@netsaosa4973 Жыл бұрын
curosr
@jeetsikder5912
@jeetsikder5912 Жыл бұрын
Awesome video sir
@rorodriguez5358
@rorodriguez5358 4 ай бұрын
thank you!
@mdwaliullah9609
@mdwaliullah9609 4 ай бұрын
thanks
@user-cat848
@user-cat848 7 ай бұрын
thankyou
React JS & Tailwind CSS Responsive Website - Beginner Friendly
1:18:16
Code Commerce
Рет қаралды 282 М.
Trick-or-Treating in a Rush. Part 2
00:37
Daniel LaBelle
Рет қаралды 17 МЛН
Это было очень близко...
00:10
Аришнев
Рет қаралды 7 МЛН
My Favorite Tailwind Tools
11:51
Coding in Public
Рет қаралды 24 М.
Build an Accordion Menu with React & Tailwind CSS
12:50
Code Commerce
Рет қаралды 18 М.
React Weather App Tutorial - From Beginner to Pro
23:15
Make an Image Carousel/Slider with React | Beginners Tutorial
23:33
Code Complete
Рет қаралды 65 М.
🔥 Build a REACT JS Portfolio Website Using Tailwind CSS - Get Hired!
1:38:30
Build React Image Slider From Scratch Tutorial
16:17
Monsterlessons Academy
Рет қаралды 145 М.
Build and Deploy a Custom React Portfolio - Vite.js & Tailwind CSS
1:24:39