Awesome work Anna, thanku so much, it has been super useful! p.d: I noticed the left arrow wasn't working, figured out if you invert the order of the numbers like shown below it works as it's supposed to:) #slide1:checked ~ #controls label:nth-last-child(1), #slide2:checked ~ #controls label:nth-last-child(4), #slide3:checked ~ #controls label:nth-last-child(3), #slide4:checked ~ #controls label:nth-last-child(2){ background: url(Images/LeftArrow.svg) no-repeat; float: left; margin: 0 0 0 -50px; display: block; }
@luonggg79852 жыл бұрын
thank you so much
@sanjeevd6872 Жыл бұрын
Neenga Tamil ah
@pytonbengalski9970 Жыл бұрын
thank you
@JoaoPaulo-ox6pr2 жыл бұрын
after watching this video i now know. i need to learn pseudo-(selectors,elements,classes) this simply deserves a nobel prize for clearing my mind
@etherealgem16822 жыл бұрын
I used a modified version of this for my site. If you want to convert it to a slider that automatically cycles between the 4 slides, you need to add some javascript. Include the following in your HTML header: var autoplayInterval = 10000; var autoplayTimer = null; var autoplay = true; var newIndex = 1; if (autoplay) { autoplayTimer = setInterval(function() { newIndex++; navigateSlider(); }, autoplayInterval); } function resetSlider() { clearInterval(autoplayTimer); } function navigateSlider() { const slide1 = document.getElementById('slide1'); const slide2 = document.getElementById('slide2'); const slide3 = document.getElementById('slide3'); const slide4 = document.getElementById('slide4'); if (newIndex == 1) { slide1.checked = true; } else if (newIndex == 2) { slide2.checked = true; } else if (newIndex == 3) { slide3.checked = true; } else if (newIndex == 4) { slide4.checked = true; newIndex = 0; } } Note that the first variable (autoplayInterval) is the time between slide cycles. By default, I set it to 10 seconds. Also, you may want to add "onclick="resetSlider()"" to your bullet/control labels, so that if someone navigates through the slides, they stop auto cycling (e.g.: ). Enjoy!
@andrericardo96604 жыл бұрын
Hi, congratulations on the tutorial, it helped me a lot. On the 'back' button I set the numbers to nth-last-child (). I made the following change below in the css. # slide1: checked ~ #controls label: nth-last-child (1), # slide2: checked ~ #controls label: nth-last-child (4), # slide3: checked ~ #controls label: nth-last-child (3), # slide4: checked ~ #controls label: nth-last-child (2)
@hazretiFrat4 жыл бұрын
thanks
@dullestimp34754 жыл бұрын
Thank you!
@stevebrzezinski33923 жыл бұрын
Thank You
@erickchavez45513 жыл бұрын
I spent hours trying to figure out what I had done wrong. Thanks so much!
@lennartv.15293 жыл бұрын
@@erickchavez4551 Where do I have to edit it? I dont get it
@montserrataguilar80552 жыл бұрын
Your code has literally saved my life! thank youuuu!
@locorocojack Жыл бұрын
if you downloaded big arrows you have to modify the background size: #slide1:checked ~ #controls label:nth-child(2), #slide2:checked ~ #controls label:nth-child(3), #slide3:checked ~ #controls label:nth-child(4), #slide4:checked ~ #controls label:nth-child(1){ background: url(right.svg) no-repeat; background-size: 50px; float:right; margin:0 -50px 0 0; display: block; }
@Phillink Жыл бұрын
Thank you! I was looking for someone who had the same problem...
@isaaclopez70658 ай бұрын
thank you my friend it was very helpful
@switbeee13646 ай бұрын
really interesting to watch even though I had no clue on most of what was happening. Really good results too
@hezbonotieno61303 жыл бұрын
The slider in the video is different from the slider in the source code. Theirs no side buttons.
@ajdinpipo084 жыл бұрын
This is the best tutorial about slider.Great job!!
@AnnaBlok3 жыл бұрын
Tnx!
@yersiniaP3 жыл бұрын
This is what I was looking for! Thanks, great! :D
@koffiemmanuelngou4 жыл бұрын
U've got one subscriber . Great !
@Axelniraj Жыл бұрын
if Arrows are not visible then use ( background-size: cover; ) property Thnxx 🙂
@MrFreeedman4 жыл бұрын
в сss если поменять цирфры то будет норм перелистывать назад #slide1:checked ~ #controls label:nth-last-child(1), #slide2:checked ~ #controls label:nth-last-child(4), #slide3:checked ~ #controls label:nth-last-child(3), #slide4:checked ~ #controls label:nth-last-child(2)
awesome slides. done some editing on them but overall very good thank you :D
@NinjaBlade08223 жыл бұрын
that song is so relax
@anupkumar27364 жыл бұрын
left arrow doesn't work properly.
@muhammad_zohaib9366 ай бұрын
Thats amazing 👍🤩 You've got 1 subscriber ❤🎉
@MyGeorge19644 жыл бұрын
Anna, that was genius - perfect! I'm using it. Except, the back button does not seem to work. Will look at it later. For not it's just perfect! Thanks.
@MsPeepingTallulah4 жыл бұрын
did you every solve the problem of the back slider?
@andrericardo96604 жыл бұрын
Hello, I posted a comment with the solution I used. I made the following change below in the css. # slide1: checked ~ #controls label: nth-last-child (1), # slide2: checked ~ #controls label: nth-last-child (4), # slide3: checked ~ #controls label: nth-last-child (3), # slide4: checked ~ #controls label: nth-last-child (2)
@xs10893 жыл бұрын
@@andrericardo9660 Yeah!! It's work!
@213984032 жыл бұрын
Saludos! Gracias por el aporte hay unos errores en el código que encontré por si otra persona le pasa lo mismo, el primero es en la clase .inner pusiste un line-height: 0; hay que quitarlo porque eso hace que los párrafos que pongas con mas texto se vea uno encima de otro y no se aprecia bien y estas usando en el html una clase slide-content, pero en CSS, no la modificas lo cual se puede eliminar sin problemas en el html .
@davidcastaneda4546 Жыл бұрын
muchas gracias se que te esforzaste
@HERMIGNIES4 жыл бұрын
Thank you from a french guy.
@nickspringer57554 жыл бұрын
The music sounds like a more ambient version of Mice on Venus from Minecraft lol.
@blink182lives1004 жыл бұрын
Hello, I am not able to get the front and back arrows to appear onto my page. . . I have reviewed the code several times I can not see why I am having this issue. The bullets work
@kreeytiv-one4 жыл бұрын
wow nice just HTML , CSS you got it
@peterkovinski84764 жыл бұрын
This is for fixed number of slides. If you have more images to display, then you have to code JavaScript to modify the style sheet
@danishirshad88313 жыл бұрын
How? '
@victoralmcrespo73104 жыл бұрын
its preatty good but the back button doesnt work
@1001-w5q4 жыл бұрын
It does but in not a proper way :D
@xx82624 жыл бұрын
@@1001-w5q #slide1:checked ~ #controls label:nth-last-child(1), #slide2:checked ~ #controls label:nth-last-child(4), #slide3:checked ~ #controls label:nth-last-child(3), #slide4:checked ~ #controls label:nth-last-child(2) { background: url(image.flaticon.com/icons/svg/130/130882.svg) no-repeat; float:left; margin: 0 0 0 -50px; display: block; } this is what you should change to make it work right
@PedroGualandi4 жыл бұрын
@@xx8262 thanks! the fix worked perfectly here
@shubhamkapadia63373 жыл бұрын
This is Great!! 🤩🤩
@sematv1215 жыл бұрын
А зачем там стрелка назад если она не работает нормально? Смотрел на codepen
@WindchesterWebDev5 жыл бұрын
Это всегда очень круто, когда подобное сделано на чистом CSS. Только вот, жаль, что в реальном проекте 99% вероятности, что никто никогда подобное не применит. Т.к. гораздо удобнее будет slick\owl. Но как концепт - да, это шикарно)
@ВадимМоскалёв-ж7б5 жыл бұрын
Slick\Owl, который зависим от jquery, наес
@WindchesterWebDev5 жыл бұрын
@@ВадимМоскалёв-ж7б и что?) Чем так плох jQuery? Может, это и не самый производительный инструмент, но в удобстве и количестве библиотек его пока никто не смог обойти.
@mifodiyshtulh81512 жыл бұрын
нууу стрелку назад я сделал рабочей (автор забил болт, что она не пашет) осталось одно НО, у меня стрелки невидимые....
@vip.ted10011 ай бұрын
ошибаешься мой друг, вот мне и понадобился слайдер без джава скрипта )
@WindchesterWebDev11 ай бұрын
тот самый 1%)
@triohmscorporation793 жыл бұрын
Thanks for the tutorial and code.
@PahugerPuruhitaBaiq4 жыл бұрын
thanks for sharing this!
@idontwhy31323 жыл бұрын
subbed, very helpful. Thanks
@masdetektivetv35043 жыл бұрын
Thanks, its awesome
@davingrahadi352510 ай бұрын
hi annablok, I want to ask, I have followed your images slide tutorial correctly but I have problems here, namely the arrow keys don't work and the image won't shift, I hope you can help me :)
@cansuaydogan14934 жыл бұрын
Thanks for nice slider video:)But I cant did it Visual Studio. How can i do in visual studio? It doesnt display regular, it displays as line by line as Slide 1, Slide 2 etc.
@alfredliew50623 жыл бұрын
you are a freaking legend
@rishisharma8596 Жыл бұрын
thank you sir
@thescribblersdiary9 ай бұрын
Solved my problem. Thanks a lot
@azeuniverse37373 жыл бұрын
How change slider position. I mean top:56% or right:5% I tried it, but it didn't work
@Joker-zv8nb2 жыл бұрын
Thanks for this, help me very much!
@PedroGualandi4 жыл бұрын
Great work!
@AnnaBlok4 жыл бұрын
Thx!
@laggron24122 жыл бұрын
thank a lot
@_cruzito.x3 жыл бұрын
How do I do if I want to add a fifth element to the slider?
@Elisha_GG2 жыл бұрын
Ваш контент прекрасен, почему у Вас так мало подсчиков остаётся загадкой.
@kaiodias54743 жыл бұрын
please how to implement an automatic photo pass on this system?
@AjayKumar-gg4ds10 ай бұрын
Awesome 👌💯
@ithielragnaros3 жыл бұрын
Muchas gracias quedo hermoso ¡
@keirembathoungamm19354 жыл бұрын
Left arrow key does not work properly, if you have time please check it and update as soon as possible
there's something wrong with the left arrow button
@sulemanali85424 жыл бұрын
thanks alot work for me
@AbduRahmanTPLPАй бұрын
What song for this Video? So relax
@fhxhnddhmcegvjdthk5 жыл бұрын
Анна, напишите пожалуйста, что за музыка играет в начале видео)
@thotanagaraju78712 жыл бұрын
i am not getting the side buttons < likes >
@alejootorres38203 жыл бұрын
Why is the back arrow not working? it only works from the third point to the first, and vice versa
@pavlekaranovic72204 жыл бұрын
dimension of pics in slider pls
@Shopwithkhushi2 ай бұрын
How can I put image in background!?
@haiangtran2036 Жыл бұрын
Which technology or libraries used in js bro? Whether it is native js or not?
@sergaft32954 жыл бұрын
Прямо магия какая то 👏 , тоже так хочу ✨😀✨
@AmitGupta-rt2gp4 жыл бұрын
Thank you.
@apuiftekhar82144 жыл бұрын
hi. its nice work.
@Vladimir9055 жыл бұрын
как всегда всё супер
@raghavkumar94853 жыл бұрын
How can i create a second slider from this on same page, if i copy it and change some code, it works but you can't see the arrows for navigation neither bullets, HELP!!!!
@CreativeAnujkumar4 жыл бұрын
Thanks Anna
@AnnaBlok4 жыл бұрын
😊
@dreiigHiveSGClips3 жыл бұрын
this isnt working in responsive the left arrow isnt showing
@acquy22794 жыл бұрын
nice video !
@AnnaBlok4 жыл бұрын
🤗
@carcar5479 Жыл бұрын
when i put it to mobile view all the text overlaps and crams together. it also wont add the second line
@hugocangi6214Ай бұрын
gracias mañana lo hago
@febrikurniawan72762 жыл бұрын
thanks :D
@casterbeat8 ай бұрын
Thanks !!
@aleksandrsrudkevics63844 жыл бұрын
Как раз что искал. Спасибо
@shaswat183 жыл бұрын
back button not working for second slide in this video
@MsPeepingTallulah4 жыл бұрын
Thanks for the video, it would be useful to get the back slider working, can you help?
@ida40954 жыл бұрын
i managed to fix it, just change this part like so: #slide1:checked ~ #controls label:nth-last-child(1), #slide2:checked ~ #controls label:nth-last-child(4), #slide3:checked ~ #controls label:nth-last-child(3), #slide4:checked ~ #controls label:nth-last-child(2){ background: url(image.flaticon.com/icons/svg/271/271220.svg) no-repeat; float: left; margin: 0 0 0 -50px; display: block; } the sequence was wrong
@luxarmiger57293 жыл бұрын
Спасибо, дорогая
@enterkvas7 ай бұрын
Левая стрелка не работает. Что-то там не то.
@elzenhaikal3934 жыл бұрын
does anyone has any idea how to add new slides to this?
@stanleymakhuza94193 жыл бұрын
I'm not sure if this would work but try this: For both the HTML and CSS files as an example where it says 'slide1' till the last slide which in this video would be 'slide4' and slide slide_1 div tags in the HTML and the CSS elements. Just copy and paste the last one which would be eg. like this and the CSS elements too. This was something I was just editing After that, you you rename the one that you just pasted to slide_5 (and you can do more eg 6+ if you want) Note you have to do it on all the div tags and CSS elements that end with slide4 and slide_4 for it to work from the input tags till the end. Basically you just copy paste and rename... I have tried to explain this the simplest way possible. Sorry if this sounds too complicated. Hope it possibly helps
@hassanch58664 жыл бұрын
What is the name of the music playing in the background?
@saitanuja28884 жыл бұрын
Is it responsive?
@nagaraj29583 жыл бұрын
Left arrow not working properly
@alaeen26752 жыл бұрын
how can i made the slider move by it self
@JansenCCruz3 жыл бұрын
help the icon does not appear for me
@TDmitry4123 жыл бұрын
Спасибо.
@shaswat183 жыл бұрын
how can I make the same carousel of 7 slides?can anyone help me
@aibartolegenov77842 жыл бұрын
How to add more slides???
@Vickysong16252 жыл бұрын
When inputting the svg icon to get the clickable arrow in the css, it will not pop out with anything... I am trying to use an alternative svg icon from another source too but it still won't show... any ideas why that's the case?
@Axelniraj Жыл бұрын
use background-size: cover; the icon size is too large to visible properly
@angelopincas3418 Жыл бұрын
how can I change the color to picture?
@marcoricello70593 жыл бұрын
how do i link this to my html code in visual studio?
@aibartolegenov77842 жыл бұрын
Прошу прощения, но текст в тэге текст накладывается друг на друга когда выходит за пределы указанной ширины. Как это можно исправить?
@krossvayz6500 Жыл бұрын
Здраствуй. Нашел решения ?
@yuliuspranata15 Жыл бұрын
ty so much mam
@jitendraprajapat68924 жыл бұрын
How to attach lazy load on this slider
@ale_3g2303 жыл бұрын
спасибо
@katiejenningson85694 жыл бұрын
Hi thanks for this it was very helpful! I just have one issue, I copied and pasted the code from codepen but for some reason, my text from h2 and p are overlapping does anyone know how to fix it?
@clevyn33413 жыл бұрын
Use line height or give margin
@suchidoodles4 жыл бұрын
Can you tell me pixal size in photo ?
@emirsaherden97163 жыл бұрын
gelek spas mamoste
@myas20094 жыл бұрын
excelente ... Hay manera de que sea automático?
@AnnaBlok4 жыл бұрын
tal vez si conectas una animación, pero no será un método flexible
@gio21563 жыл бұрын
воу, не думал что такое можно на пюрешном хтмл и цсс сделать
@filipmachala75703 жыл бұрын
Does anybody know how to put it into autotomatic slider? Like every 4sec it will change to next slide. Thank you very much
@etherealgem16822 жыл бұрын
Look at my comment. :)
@gogutans4 жыл бұрын
Hi guys, I find it pretty difficult to add a new slide, could you please help me?
@AnnaBlok4 жыл бұрын
What problems?
@gogutans4 жыл бұрын
@@AnnaBlok could you plase make an update with 8slides? I am trying to add new slides and I cant figure out how
@jordandesigns57973 жыл бұрын
@@gogutans @anna blok I have to make a slide without JS for my site but need more than 4 slides, please help
@aibartolegenov77842 жыл бұрын
Same problem, if you have solution may you please write