How to Create Image Slider in HTML, CSS & JS - Step by Step | JavaScript Projects

  Рет қаралды 231,303

WsCube Tech

WsCube Tech

Күн бұрын

Пікірлер: 152
@anumshehzadi-r3o
@anumshehzadi-r3o Жыл бұрын
VERY GOOD EXPLANATION, no destructive music, clear voice no jargon, no beating around the bush straight to the point every line explained THANK YOU VERY MUCH.
@MaanIsMe
@MaanIsMe Жыл бұрын
It's was easy😅, just takes a little thinking. const goNext = () => { if (counter < slides.length - 1) { counter++; slideImage(); } }; const goPrev = () => { if (counter != 0) { counter--; slideImage(); } };
@Himanshua09
@Himanshua09 Жыл бұрын
I did the same as shown in video but I am getting error. When I checked in console it is showing slides.forEach is not a function. Please help
@CodeWithMaahzaib1
@CodeWithMaahzaib1 7 ай бұрын
Yeh tw Galat code hai try kia but hua he nahi😊
@geeksrahul
@geeksrahul 6 ай бұрын
@@Himanshua09 make sure you used querySelectorAll() not querySelector()
@strangequard5702
@strangequard5702 9 ай бұрын
function gonext() { if(count == 3){ return } count++ slider() } function gopreview() { if(count == 0){ return } count-- slider() }
@adeebkhan8531
@adeebkhan8531 Жыл бұрын
Following changes must be done in 'goPrev' and 'goNext' functions to fix this BUG: const goPrev = () => { if (counter == 0) { counter = slides.length - 1; slideShow(); } else { counter--; slideShow(); } } const goNext = () => { if (counter == slides.length - 1) { counter = 0; slideShow(); } else { counter++; slideShow(); } }
@saquibansari7866
@saquibansari7866 Жыл бұрын
Thanx buddy
@Himanshua09
@Himanshua09 Жыл бұрын
I did the same as shown in video but I am getting error. When I checked in console it is showing slides.forEach is not a function. Please help
@zaryabimran7303
@zaryabimran7303 Жыл бұрын
Can anyone tell me how he hoisted arrow function (slideImage()) 🤔🤔🤔
@thesocialtok
@thesocialtok Жыл бұрын
use array from() method to fix this foEeach loop error@@Himanshua09
@MajorInflation
@MajorInflation Жыл бұрын
OKAY I HAVE BEEN TRYING TO RECREATE THIS WITH A DIFFERENT FUNCTION AND IT DID NOT WORK I AM LOSING MY MINF BUT THANKS FOR THIS CODE I AM SO DAMN GRATEFUL BECAUSE I HAVE A WEBSITE TO MAKE AND SUBMIT IN 5 DAYS FOR A PROJECT AND I HAVE BEEN STUCK AT MAKING THIS CARSOUEL FOR 2 DAYS BECAUSE MY JAVA SCRIPT IS BAD HOWEVER I KNOW THAT YOU DON'T CARE SO THANKS THANKS THANKS THANKS THANKS ALSO THANKS TO THE VIDEO MAKER GUY FOR THE OG CODE CUZ I DON'T KNOW JS THAT WELL AND UR EXPLAINATION WAS GREAT OKAY IM RUNNING OUTTA TIME BY THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS
@sajadhamid2000
@sajadhamid2000 Жыл бұрын
My favourite tutor on internet
@HassaanHaider313
@HassaanHaider313 10 ай бұрын
my also
@Lyrics_Editz2005
@Lyrics_Editz2005 6 ай бұрын
Inki GitHub I'd kya h
@Lyrics_Editz2005
@Lyrics_Editz2005 6 ай бұрын
​@@HassaanHaider313 inki GitHub I'd kya h
@AnonymousMaiden
@AnonymousMaiden Ай бұрын
thanks a lot sir, this video helped me a lot i regret why haven't i came here before wasting my hours on coding
@srinivasaraoyp3640
@srinivasaraoyp3640 2 жыл бұрын
Aapka explain karnay ka tarika bahuth badiya. Thank you very much.
@MuhammadWaqas-eb1uu
@MuhammadWaqas-eb1uu 7 ай бұрын
This project help me. And I create with help of slider automatically slide prev and Next. Thanks Sir!
@SurajMule-i8o
@SurajMule-i8o 5 ай бұрын
Wa wa wa kya teaching mja aa gya ❤❤ 1 no sir 🎉
@NANIANTIC
@NANIANTIC 6 ай бұрын
const prev = () => { if (counter > 0) { counter--; slideimg(); } } const nxt = () => { if (counter < slides.length - 1) { counter++; slideimg(); } }
@OneXHacker001
@OneXHacker001 Жыл бұрын
best javascript playlist which have helped me in getting a grip on javascript.
@FrameFablesTV
@FrameFablesTV 10 ай бұрын
Excellent Explanation Sir!!!
@Sunny-cx8ki
@Sunny-cx8ki 2 ай бұрын
Seriously man, this helped me a lot, thank you very much
@shivam3839
@shivam3839 Жыл бұрын
this series was pretty helpful, now i am comfortable in javascript
@Himanshua09
@Himanshua09 Жыл бұрын
I did the same as shown in video but I am getting error. When I checked in console it is showing slides.forEach is not a function. Please help
@shivam3839
@shivam3839 Жыл бұрын
@@Himanshua09 const slides=document.querySelectorAll('.slide') let counter=0 slides.forEach((slide,index)=>{ slide.style.left=`${index*100}%` }) const slideImage=()=>{ slides.forEach((slide)=>{ slide.style.transform=`translateX(-${counter*100}%)` }) } const goNext=()=>{ counter++ if(counter>3) counter=3 slideImage() } const goPrev=()=>{ counter-- if(counter
@zaryabimran7303
@zaryabimran7303 Жыл бұрын
@@Himanshua09 console and check that have you selected all the slides in the slide variable ...
@pankaj_9998
@pankaj_9998 Жыл бұрын
@@Himanshua09 check slides is array of images items or not.
@Chain25
@Chain25 Жыл бұрын
Welcome and Thanks a Lot.
@kinzasheikh-xn9oe
@kinzasheikh-xn9oe 8 ай бұрын
const slides = document.querySelectorAll(".slide") var counter = 0; slides.forEach( (slide, index) =>{ slide.style.left = `$(index * 100)%` } ) const goPrev = () => { counter-- slideImage() } const goNext = () => { counter++ slideImage() } const slideImage = () => { slides.forEach( (slide) => { slide.style.transform = `translateX(-${counter * 100}%)` } ) }
@VishalSharma-rn7mt
@VishalSharma-rn7mt 10 ай бұрын
Awesome, very clear and easy
@Rahmanullah-iu9tf
@Rahmanullah-iu9tf Жыл бұрын
sir this is very helpful
@krishnaghosh8393
@krishnaghosh8393 Жыл бұрын
This is a very very helpful video Thanks for sharing
@hammadrehmani2666
@hammadrehmani2666 Жыл бұрын
great job brother...its very helpful for me
@amir8reza536
@amir8reza536 2 ай бұрын
Thank you for this video 🙏🏻
@omprakashsuthar7218
@omprakashsuthar7218 Жыл бұрын
This is a very helpful video. Thanks sir
@gaurangmore9413
@gaurangmore9413 2 жыл бұрын
thanks a lot buddy,this video really saved my ass.
@Shahid-zt7mg
@Shahid-zt7mg 2 жыл бұрын
This is really very very very helpful for me using this concept I make better the my UI
@harisrehman7090
@harisrehman7090 Жыл бұрын
REALLY HELPFULL THANKU!❣
@jokieme1184
@jokieme1184 2 жыл бұрын
Sir please make a video on responsive nav bar
@harikyt
@harikyt Жыл бұрын
awesome...bohot sahi
@randykeetley9780
@randykeetley9780 Жыл бұрын
I did exactly what you did, and I even made sure that I did by checking my code. However, when I hit the next and previous buttons, you can tell they are being pressed however, the images don’t change at all
@hassansmma
@hassansmma Жыл бұрын
check again with zoom
@Poojayadav_11-m9c
@Poojayadav_11-m9c Жыл бұрын
Yes even I got this issue, images doesn't change after clicking next and prev
@Vikrant_Dubey
@Vikrant_Dubey 10 ай бұрын
slide.style.transform = `translateX(-${counter * 100}%)`; may be in this line you are using single quotes use tilde copy paste this code line
@anjalimishra455
@anjalimishra455 10 ай бұрын
​@@Vikrant_DubeyI ha have same issue 😔 Maine check Kiya to console me error hai goNext is not defined at HTMLbuttonElement.onclick aa raha hai please help 😢
@Lyrics_Editz2005
@Lyrics_Editz2005 6 ай бұрын
I also
@sumitgupta7419
@sumitgupta7419 Жыл бұрын
Thanks sir please keep making video and explaining everything very neatly step by step
@akhilch3684
@akhilch3684 2 жыл бұрын
Wow great explanation
@Himanshua09
@Himanshua09 Жыл бұрын
I did the same as shown in video but I am getting error. When I checked in console it is showing slides.forEach is not a function. Please help
@fightforfitness2256
@fightforfitness2256 Жыл бұрын
Very nicely explained sir.
@samandartursunov7205
@samandartursunov7205 8 ай бұрын
Thanks bro )
@MienVuThi-uf9hf
@MienVuThi-uf9hf Жыл бұрын
great video
@crazytthings47
@crazytthings47 11 ай бұрын
Sir this video help me a lot but meko js bilkul nhi samajta😢
@CrazyvlogsH
@CrazyvlogsH 8 ай бұрын
Js apko nhi smjhega apko js ko smjhna pdega😂
@Dipankar_Barmaan
@Dipankar_Barmaan 3 ай бұрын
😂😂😂​@@CrazyvlogsH
@dhfabricsports81
@dhfabricsports81 Ай бұрын
Try kart rhy
@nehaartgallery6319
@nehaartgallery6319 5 ай бұрын
What level of project should we done for internship
@talibhusain3335
@talibhusain3335 2 жыл бұрын
Nice explanation
@abhinavyadav6821
@abhinavyadav6821 2 жыл бұрын
Sir pls make video on ping pong game by javascript , pleaseee sir it will be very helpful
@abhishektiwari2643
@abhishektiwari2643 2 жыл бұрын
Aapko JavaScript aata hai
@yashghugardare519
@yashghugardare519 Жыл бұрын
very helpfull
@mahadevmushrooms
@mahadevmushrooms Жыл бұрын
mere hisab se bright theme better hai
@imihere5103
@imihere5103 2 жыл бұрын
Sir me ne fiverr pe six months pehly account bnaya tha, kisi waja se kam start na kr ska, WordPress se related gigs bnai thi Now i want to start freelancing again because im free now Pochna just ye he k muje new account bnana chahye ya wohi purana account Agr wohi account use kru to kya customer ko ye ni lge ga k is ne to six months se ak b order complete ni kya, customer negative ni ho jay ga? Pls guide me
@abhishektiwari2643
@abhishektiwari2643 2 жыл бұрын
Freelancing me kya karna hota hai Kya programing language aana chahiye Esme kya karna hota hai Kya kya aana chahiye
@advanbhatti6063
@advanbhatti6063 2 жыл бұрын
Big fan
@_justacoder_
@_justacoder_ Жыл бұрын
Loved it!! you made it super easy to understand
@ashutoshswain6206
@ashutoshswain6206 Жыл бұрын
Dear sir, Thanks for this type of video but please provide it's source code
@zaryabimran7303
@zaryabimran7303 Жыл бұрын
Can anyone tell me how he hoisted arrow function (slideImage()) 🤔🤔🤔
@vasudevpareek2862
@vasudevpareek2862 Жыл бұрын
const slideImage = ( ) => { //code for functions }
@visheshkumar8015
@visheshkumar8015 2 жыл бұрын
Can use this for the first the slide after last slide translateX(-${(counter%4)*100}%)
@listenbeautiful9512
@listenbeautiful9512 2 жыл бұрын
Yes bro...👍
@aftabshaikh305
@aftabshaikh305 Жыл бұрын
bro but in my laptop this ${} does not work i dont know why
@Dev-Phantom
@Dev-Phantom 2 жыл бұрын
easy to understand
@zaryabimran7303
@zaryabimran7303 Жыл бұрын
Can anyone tell me how he hoisted arrow function (slideImage()) 🤔🤔🤔
@nitishkumar4633
@nitishkumar4633 Жыл бұрын
Sir where this code is available, may you please provide the link?
@skygrace8459
@skygrace8459 2 жыл бұрын
Excellent, thank sir. Would you please make autoplay list
@hello_Subham
@hello_Subham Жыл бұрын
please send us logic that empty box which is not found in the github link I really need that code ..
@LizanSarkar-e5e
@LizanSarkar-e5e 18 күн бұрын
good work help to me.
@integrate2945
@integrate2945 Жыл бұрын
Could you please provide some php project????? Please....
@digitalaayam2503
@digitalaayam2503 2 жыл бұрын
Ye example to automatically chalta hai bro, however, good job
@mystudy6114
@mystudy6114 2 жыл бұрын
Please make a separate playlist for this
@RamChander-ng1de
@RamChander-ng1de 2 жыл бұрын
Sir kon s theam use karte hoo in vs code
@avinashhemanth4145
@avinashhemanth4145 Жыл бұрын
in script code why this is not working for me slides.forEach( (slide,index) =>{ slide.style.left=`$(index*100)%` } )
@brijeshpoojary1791
@brijeshpoojary1791 Жыл бұрын
It's brackets should be changed to ${index*100}%
@avinashhemanth4145
@avinashhemanth4145 Жыл бұрын
@@brijeshpoojary1791 kk thnks
@saquibansari7866
@saquibansari7866 Жыл бұрын
After dollar sign use curly braces {}, not parenthesise (), while using template literal...
@nishagawade3248
@nishagawade3248 Жыл бұрын
why do we need to write slide image function twice?
@avishekadhikary3677
@avishekadhikary3677 Жыл бұрын
Coz first we have to arrange the images in a systematic way, in a line. Then we have to slide those images on that line of images. In these case the first slide function arranges the images and the second one is the function for the slider Hope these helps 🙂✊
@Himanshua09
@Himanshua09 Жыл бұрын
I did the same as shown in video but I am getting error. When I checked in console it is showing slides.forEach is not a function. Please help
@Ranaali069
@Ranaali069 4 ай бұрын
nice
@beinglearner8543
@beinglearner8543 7 ай бұрын
Error Index is not recognize const slides = document.querySelectorAll(".slide") var counter = 0; console.log(slides) slides.forEach( (slide,index) => { slide.style.bottom = '${index * 100}%' } ) index Error
@manishpanchal1098
@manishpanchal1098 2 жыл бұрын
nice video
@chunmunjain3490
@chunmunjain3490 Жыл бұрын
my javascript code is not working plz share the code
@kholoudbelhadj
@kholoudbelhadj Жыл бұрын
how can I make them switch automatically
@026maheshkumars7
@026maheshkumars7 Жыл бұрын
super
@lyrichives7859
@lyrichives7859 Жыл бұрын
Thank youuu
@Arbazbabu033
@Arbazbabu033 9 ай бұрын
Jquery se slick skider kese lagaye
@nikitashirke6025
@nikitashirke6025 2 жыл бұрын
Superb
@MrJayantchaudhary
@MrJayantchaudhary 2 жыл бұрын
Sir can you please make it infinite.that after last image first image will run.
@phpmysql2518
@phpmysql2518 2 жыл бұрын
where is your github link
@Irshadali121-ng6rr
@Irshadali121-ng6rr Жыл бұрын
Slide end kaise hoga
@peculiar_psa
@peculiar_psa 6 ай бұрын
bhai kiska ye transition effect aa rah hai kya ?? mera pata nhi kyu sirf image change ho raha hai but transition me slide nhi ho rah!
@Lyrics_Editz2005
@Lyrics_Editz2005 6 ай бұрын
Sir iska source code kha Mila ga
@BRAND_OF_UTTARPRADESH
@BRAND_OF_UTTARPRADESH Жыл бұрын
Please avoid text display on screen at code editor page
@TusharKumarPatel-ns1lo
@TusharKumarPatel-ns1lo Жыл бұрын
I tried it as it is but not working
@_justacoder_
@_justacoder_ Жыл бұрын
where is the link for source code
@banihin
@banihin Жыл бұрын
I cannot use .style.left or .style.transform. There seems to be an error with the "slide" variable but I've followed every step.
@heeraraghuvanshi8985
@heeraraghuvanshi8985 Жыл бұрын
same problem
@gkandcurrentaffairs7151
@gkandcurrentaffairs7151 Жыл бұрын
if you provide source code then it will easy bro
@nabilaakhtar818
@nabilaakhtar818 Жыл бұрын
Where is the github link?
@rajputfitness8641
@rajputfitness8641 Жыл бұрын
how to make this auto change😅
@mdirshadkhan6124
@mdirshadkhan6124 2 жыл бұрын
Can you share code of this image slider
@MUHAMMADUMAR-fe7ec
@MUHAMMADUMAR-fe7ec 2 жыл бұрын
ye tatto hai nai kare ga
@bollybuck
@bollybuck 2 жыл бұрын
@@MUHAMMADUMAR-fe7ec yr img slider ki koi range hi ni h Back krty rho hota rhy ga
@MaanIsMe
@MaanIsMe Жыл бұрын
Here you go, const goNext = () => { if (counter < slides.length - 1) { counter++; slideImage(); } }; const goPrev = () => { if (counter != 0) { counter--; slideImage(); } };
@ManmohanBhardwaj-ft2hu
@ManmohanBhardwaj-ft2hu Жыл бұрын
Sir code not working
@parthdashore46
@parthdashore46 2 жыл бұрын
clean
@Rameshpuri81
@Rameshpuri81 Жыл бұрын
" 0 * 100 " = zero "0" hota h sir ,"1*100"= 100 hota h sir
@advanbhatti6063
@advanbhatti6063 2 жыл бұрын
Sir g me ne like subscribe or share kr ke apni fee pay krdi hy
@scriptpriest
@scriptpriest Жыл бұрын
What if we want the image slider to be like a wheel. So that when you click on the next button after the last image, the slider still slides forward but shows the first image instead of sliding backwards to the first image. And vice versa
@pankaj_9998
@pankaj_9998 Жыл бұрын
i was also looking solution for this case
@its_adesh
@its_adesh 10 ай бұрын
Use modulo on counter
@manojrawat5756
@manojrawat5756 Жыл бұрын
❤❤❤
@priyamittal8302
@priyamittal8302 7 ай бұрын
source code?
@vasudevpareek2862
@vasudevpareek2862 Жыл бұрын
the code is not working 😕
@harikyt
@harikyt Жыл бұрын
it is working for me
@aarushirajput7821
@aarushirajput7821 Жыл бұрын
translate spelling mistake😅
@bhumikasethi7175
@bhumikasethi7175 4 ай бұрын
Not working
@Devyadav0007
@Devyadav0007 6 ай бұрын
Ye Jo aap bolte h to likh jata h isse kafi dikkat hoti h
@Lets_develop_it
@Lets_develop_it Жыл бұрын
here is the solution for this bug function Prev() { if (counter == 0) { } else { counter++ slideimage() } }; function Next() { if (counter == (slides.length*-1)+1) { } else { counter-- slideimage() } }
@scriptpriest
@scriptpriest Жыл бұрын
What if we want the image slider to be like a wheel. So that when you click on the next button after the last image, the slider still slides forward but shows the first image instead of sliding backwards to the first image. And vice versa
@rb.rana1993
@rb.rana1993 2 жыл бұрын
Sir please give this projector source code or GitHub link
@MuntasirMamunRony
@MuntasirMamunRony 3 ай бұрын
sir pehle haddi to banalo fir style lagana!
@alilatif2467
@alilatif2467 2 жыл бұрын
❤️❤️❤️❤️
@Himanshua09
@Himanshua09 Жыл бұрын
I did the same as shown in video but I am getting error. When I checked in console it is showing slides.forEach is not a function. Please help
@kumaxFPS
@kumaxFPS Жыл бұрын
check in console, u may not be assigning the images in slides variable.
@kumaxFPS
@kumaxFPS Жыл бұрын
alos check JS connection
@nistaff9319
@nistaff9319 Ай бұрын
it doesn't work thank you for wasting my time
@apaarjain
@apaarjain 4 ай бұрын
Waste of time. Incomplete
@itskishorstatus962
@itskishorstatus962 Жыл бұрын
Sir can you please make it infinite.that after last image first image will run.
@manishagurjar9058
@manishagurjar9058 Жыл бұрын
my javascript code is not working plz share the code.
Build a JavaScript IMAGE SLIDER in 15 minutes! 🖼️
15:49
Bro Code
Рет қаралды 57 М.
А я думаю что за звук такой знакомый? 😂😂😂
00:15
Денис Кукояка
Рет қаралды 6 МЛН
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 12 МЛН
If people acted like cats 🙀😹 LeoNata family #shorts
00:22
LeoNata Family
Рет қаралды 41 МЛН
Auto Image Slideshow using HTML and CSS
7:03
Code Instinct
Рет қаралды 348 М.
How To Create An Animated Image Carousel With CSS/JavaScript
14:10
Web Dev Simplified
Рет қаралды 277 М.
Responsive Image Slider with CSS Animation in 1minute 🔥
4:52
Thapa Technical
Рет қаралды 112 М.
🎮 Bubble Game Tutorial: Create Fun with JS | Harsh Sharma
59:06
Sheryians Coding School
Рет қаралды 190 М.
How to Create Analog Clock using HTML CSS and JavaScript
28:17
Code Traversal
Рет қаралды 819 М.
HTML and CSS Project Tutorial: Pure CSS Image Slider
7:41
Skillthrive
Рет қаралды 346 М.
JavaScript Image Slider Tutorial in Hindi / Urdu
26:59
Yahoo Baba
Рет қаралды 29 М.