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

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

WsCube Tech

2 года назад

179,084 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Hari
Hari - 28.09.2023 13:59

awesome...bohot sahi

Ответить
Vasudev Pareek
Vasudev Pareek - 20.09.2023 09:36

the code is not working 😕

Ответить
Tushar Kumar
Tushar Kumar - 18.09.2023 12:29

where is the link for source code

Ответить
Bhaskar Thakulla
Bhaskar Thakulla - 13.09.2023 18:46

Thank youuu

Ответить
Zaryab Imran
Zaryab Imran - 05.09.2023 06:27

Can anyone tell me how he hoisted arrow function (slideImage()) 🤔🤔🤔

Ответить
Great King
Great King - 05.09.2023 02:46

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

Ответить
Tushar Kumar
Tushar Kumar - 30.08.2023 09:26

Loved it!! you made it super easy to understand

Ответить
My Story
My Story - 19.08.2023 15:59

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

Ответить
Best option buying for trader
Best option buying for trader - 13.08.2023 11:53

" 0 * 100 " = zero "0" hota h sir ,"1*100"= 100 hota h sir

Ответить
Shivam
Shivam - 09.08.2023 12:08

this series was pretty helpful, now i am comfortable in javascript

Ответить
Let's Develop it
Let's Develop it - 08.08.2023 15:46

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()
}
}

Ответить
Fight for fitness
Fight for fitness - 01.08.2023 21:36

Very nicely explained sir.

Ответить
Aarushi Rajput
Aarushi Rajput - 27.07.2023 09:25

translate spelling mistake😅

Ответить
Avinash Hemanth
Avinash Hemanth - 03.07.2023 14:32

in script code why this is not working for me
slides.forEach(
(slide,index) =>{
slide.style.left=`$(index*100)%`
}
)

Ответить
Omprakash Suthar
Omprakash Suthar - 27.06.2023 07:18

This is a very helpful video.
Thanks sir

Ответить
Manmohan Bhardwaj
Manmohan Bhardwaj - 26.06.2023 09:13

Sir code not working

Ответить
Hygge
Hygge - 25.06.2023 18:53

I cannot use .style.left or .style.transform. There seems to be an error with the "slide" variable but I've followed every step.

Ответить
Irshad ali121
Irshad ali121 - 07.06.2023 12:13

Slide end kaise hoga

Ответить
Adeeb Khan
Adeeb Khan - 09.05.2023 15:08

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();
}
}

Ответить
Yash Ghugardare
Yash Ghugardare - 02.05.2023 20:52

very helpfull

Ответить
ashutosh swain
ashutosh swain - 30.04.2023 17:39

Dear sir, Thanks for this type of video but please provide it's source code

Ответить
Mahadev Mushrooms
Mahadev Mushrooms - 20.04.2023 11:18

mere hisab se bright theme better hai

Ответить
NITISH KUMAR
NITISH KUMAR - 08.04.2023 20:01

Sir where this code is available, may you please provide the link?

Ответить
Waqar Alam
Waqar Alam - 08.04.2023 18:08

To reset the slider-Image use this code!!

const goNext = () => {

counter++;

if(counter === slider.length){
counter = 0;
}

slideImage();
}

Ответить
Code_tech by Subham
Code_tech by Subham - 03.04.2023 05:06

please send us logic that empty box which is not found in the github link I really need that code ..

Ответить
Rahman ullah
Rahman ullah - 02.04.2023 22:17

sir this is very helpful

Ответить
Rajput fitness
Rajput fitness - 26.03.2023 19:11

how to make this auto change😅

Ответить
SUMIT GUPTA
SUMIT GUPTA - 25.03.2023 10:51

Thanks sir please keep making video and explaining everything very neatly step by step

Ответить
sajad hamid
sajad hamid - 21.03.2023 03:26

My favourite tutor on internet

Ответить
Manoj Rawat
Manoj Rawat - 17.03.2023 11:00

❤❤❤

Ответить
Manisha Gurjar
Manisha Gurjar - 15.03.2023 14:42

my javascript code is not working plz share the code.

Ответить
integrate
integrate - 12.03.2023 16:39

Could you please provide some php project????? Please....

Ответить
it's Kishor Status
it's Kishor Status - 03.03.2023 09:12

Sir can you please make it infinite.that after last image first image will run.

Ответить
Shubham Kumar Jaiswal
Shubham Kumar Jaiswal - 25.02.2023 11:05

aap bole github ka link denge diye kha link bhejo

Ответить
Haris Rehman
Haris Rehman - 23.02.2023 17:15

REALLY HELPFULL THANKU!❣

Ответить
Nisha Gawade
Nisha Gawade - 20.02.2023 15:33

why do we need to write slide image function twice?

Ответить
Mien Vu Thi
Mien Vu Thi - 13.02.2023 03:38

great video

Ответить
Krishna Ghosh
Krishna Ghosh - 17.01.2023 21:39

This is a very very helpful video
Thanks for sharing

Ответить
Maan
Maan - 17.01.2023 08:49

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();
}
};

Ответить
HAMMAD REHMANI
HAMMAD REHMANI - 04.01.2023 20:03

great job brother...its very helpful for me

Ответить
Chunmun Jain
Chunmun Jain - 28.12.2022 15:57

my javascript code is not working plz share the code

Ответить
Akhil CH
Akhil CH - 21.12.2022 07:28

Wow great explanation

Ответить
Md irshad Khan
Md irshad Khan - 19.12.2022 19:07

Can you share code of this image slider

Ответить
CodeWithTalib
CodeWithTalib - 12.12.2022 20:42

Nice explanation

Ответить
Vishesh kumar
Vishesh kumar - 08.12.2022 04:40

Can use this for the first the slide after last slide
translateX(-${(counter%4)*100}%)

Ответить
Jayant Chaudhary
Jayant Chaudhary - 01.12.2022 20:44

Sir can you please make it infinite.that after last image first image will run.

Ответить
Shahid
Shahid - 30.11.2022 19:06

This is really very very very helpful for me using this concept I make better the my UI

Ответить
ADvan Bhatti
ADvan Bhatti - 14.11.2022 16:22

Sir g me ne like subscribe or share kr ke apni fee pay krdi hy

Ответить
ADvan Bhatti
ADvan Bhatti - 14.11.2022 16:20

Big fan

Ответить
Gaurang more
Gaurang more - 29.10.2022 00:54

thanks a lot buddy,this video really saved my ass.

Ответить