How To Make An Infinite Autoplay Slider

How To Make An Infinite Autoplay Slider

The Mute Dev

3 года назад

153,354 Просмотров

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


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

Hanieh Souti
Hanieh Souti - 20.10.2023 14:14

thank youuuu sooo muuch it wasss sooo helpfulllllll :))))))

Ответить
Preet Singh Dhaliwal
Preet Singh Dhaliwal - 18.10.2023 14:40

Thank you for the Simple code and effective. But the images are not repeated. Is there any modification possible, so images will be infinite?

Ответить
 Bob builder
Bob builder - 17.10.2023 21:18

Nice video short and sweet

Ответить
JuanchaDev
JuanchaDev - 28.09.2023 11:30

Brillant, thanks for instruction !! <3

Ответить
Agustin Costantini
Agustin Costantini - 20.09.2023 00:13

no me salio :(

Ответить
GAMEYARD
GAMEYARD - 09.09.2023 16:13

Thank you helped alot!

Ответить
Sufyanur Rasheed
Sufyanur Rasheed - 05.09.2023 11:49

Please provide source code here

Ответить
Prasad Mali
Prasad Mali - 03.09.2023 16:34

it helped me a lot, thanks bro

Ответить
TeknOfis
TeknOfis - 03.09.2023 14:05

You're the Man!

Ответить
Jacob Seeger
Jacob Seeger - 23.08.2023 00:44

THANK YOU!!!!

Ответить
Usha C
Usha C - 16.08.2023 15:09

Hello!
This is simple and easy to understand.
Please share the code because it is not too much of visible actually.

Ответить
Giovanni Speranza
Giovanni Speranza - 04.08.2023 19:41

it ends, uts not infinite

Ответить
a4cfee
a4cfee - 28.07.2023 18:42

Legit tut

Ответить
Imran Biswas
Imran Biswas - 17.07.2023 05:33

How does the carousel stop on hovering image?

Ответить
Bob Ruis
Bob Ruis - 16.07.2023 15:57

Hi! This loops really cool! I want this but from top to bottom. How do I do this?

Ответить
Esteban Bechelli
Esteban Bechelli - 10.07.2023 02:24

Thanks ! It's a great solution !

Ответить
KR_로황
KR_로황 - 30.06.2023 16:06

<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>replit</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>

<body>

<div class="slider">
<div class="slide-track" >
<div class="slide">
<img src='./images/netflix.png' />
</div>
<div class="slide">
<img src='./images/tving.png' />
</div>
<div class="slide">
<img src='./images/disneyplus.png' />
</div>
<div class="slide">
<img src='./images/coupangplay.png' />
</div>
<div class="slide">
<img src='./images/watcha.png '/>
</div>
<div class="slide">
<img src='./images/wavve.png '/>
</div>
<div class="slide">
<img src='./images/boxoffice.png' />
</div>

<!-- doubled -->
<div class="slide">
<img src='./images/netflix.png' />
</div>
<div class="slide">
<img src='./images/tving.png '/>
</div>
<div class="slide">
<img src='./images/disneyplus.png' />
</div>
<div class="slide">
<img src='./images/coupangplay.png' />
</div>
<div class="slide">
<img src='./images/watcha.png' />
</div>
<div class="slide">
<img src='./images/wavve.png' />
</div>
<div class="slide">
<img src='./images/boxoffice.png' />
</div>

</div>
</div>



</body>

</html>
body {
min-height: 100vh;
display: grid;
place-items: center;
}

.slider {
height: 250px;
margin : auto;
position: relative;
width : 90%;
display: grid;
place-items : center;

}

.slide-track {
display: flex;
width : calc(250px * 14);
}

@keyframes scroll {
0% {
transform: translateX(0);
}
100% {
transform: translateX(calc(-250px * 7));
}
}

.slide {
height: 200px;
width : 250px;
display: flex;
align-items : center;
padding : 15px;
perspective: 100px;
}

img {
width : 100%;

}

img: hover{
transform: translateZ(20px);
}

.slider::before,
.slider::after{
background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
content: '' ;
height: 100%;
position: absolute;
width: 15%;
z-index: 2;
}

.slider::before {
left: 0;
top: 0;

}

.slider::after {
right: 0;
top: 0;
transform: rotateZ('180deg');
}


i copied source codes now, but the auto-scorll is not working. is there anyone to help?

Ответить
MW-TR
MW-TR - 22.06.2023 15:40

This was a huge help, thank you!

Ответить
George Seletski
George Seletski - 22.06.2023 12:22

hey! Nice video.

Ответить
Bel S
Bel S - 20.06.2023 21:17

for some reason i can't seem to make it work

Ответить
Digital Harish
Digital Harish - 17.06.2023 07:50

can we do this for end continue next slider

Ответить
Muazzam Bhatti
Muazzam Bhatti - 10.06.2023 05:49

thanks alot, this was exactly what i needed

Ответить
Arjun Tiwari
Arjun Tiwari - 25.05.2023 07:27

it,s just amazing bro 👍👌

Ответить
Selva Prakash ML
Selva Prakash ML - 15.05.2023 23:20

what is the code to move from left to right

Ответить
Ren Ends
Ren Ends - 30.04.2023 14:54

Incisive explanation.
Great video!
Thanks for the video!

Ответить
Marek Samofal
Marek Samofal - 27.04.2023 18:50

Awsome!!! thank you so much ❤❤❤

Ответить
Nehlzin ToonZ
Nehlzin ToonZ - 14.04.2023 14:45

wow, thank you for this video man, I love it, please Is there a source code for the tutorial

Ответить
Aditya Zhafir Dhiaulhaq
Aditya Zhafir Dhiaulhaq - 03.04.2023 08:35

thank you, it was really helpful.

Ответить
Peter Pineda
Peter Pineda - 29.03.2023 23:09

my slide is not infinite :c

Ответить
Aram Donyaee
Aram Donyaee - 25.03.2023 17:42

You are brilliant. Your tutorial helped me so much and I really appreciate your work. Keep up creating great videos like this! 👏👏

Ответить
One-piece world
One-piece world - 20.03.2023 15:05

What happens when last image shows up!???

Ответить
Faiz Ahmed
Faiz Ahmed - 14.03.2023 22:20

Thank you so much, i was really looking for this and couldn't find any content on the topic seeming like a common feature.

Ответить
Minzin
Minzin - 07.03.2023 20:51

Very well done! I would just want to add that you should add the first image on top of the duplicated, because the image might take a bit to load

Ответить
Сергей Домина
Сергей Домина - 03.03.2023 17:57

is this loop animation?

Ответить
William D'Arrigo
William D'Arrigo - 08.02.2023 20:10

this worked awesome!

Ответить
Sylvain Bousselier
Sylvain Bousselier - 24.01.2023 20:25

its a full static solution :(

Ответить
naresh nagaraj1996
naresh nagaraj1996 - 10.01.2023 15:12

helpful!

Ответить
priya priya
priya priya - 27.12.2022 11:51

Please make it in react native

Ответить
Una
Una - 20.12.2022 11:35

thanks for this! super easy to follow along, keep it up!

Ответить
nick woodward
nick woodward - 09.12.2022 16:44

not infinite 🤷‍♂

Ответить
Evolution
Evolution - 09.12.2022 10:46

Hey The Mute Dev :)
I really like this tutorial and wondered if it is possible to add one specific thing: to turn the pictures into links so u can click them and get to a nother website, but the rest stays the same?

Ответить
Madhvi
Madhvi - 15.11.2022 18:48

Is it responsive?

Ответить
Techy Tro
Techy Tro - 04.11.2022 21:03

Your video as helped me a lot to solve what I seek for, thanks for it

Ответить
Ernandes Souza
Ernandes Souza - 31.10.2022 22:18

Apenas CSS! Simples, fácil mas perfeito demais!!! 👏👏👏

Ответить
Ankita Sapra
Ankita Sapra - 19.10.2022 20:09

Thanks !

Ответить
Mario C
Mario C - 22.09.2022 03:23

Great Video! thank you 🥰

Ответить
Mic Ayokpon
Mic Ayokpon - 20.09.2022 13:47

Awesome tutorial

Ответить
Archana Singh
Archana Singh - 16.09.2022 17:51

Bhai awaz nhi hai kya apke muh me

Ответить
Akéssé Wilfried Kouamé
Akéssé Wilfried Kouamé - 01.09.2022 21:21

Man are you just formidable😇

Ответить
pubg gaming
pubg gaming - 30.08.2022 13:30

i need source code

Ответить