Slideshow With Navigation Buttons Using Only HTML & CSS

Поделиться
HTML-код
  • Опубликовано: 7 фев 2025
  • ◘ Like our page : / darkcode0
    ◘ Paypal donation link : paypal.me/YBen...
    ◘ Download Files From Here : goo.gl/yGMXcC
    ◘ Code Editor : Atom
    ◘ Music Name : Lensko - Cetus [NCS Release]
    ◘ Music Link : • Lensko - Cetus | House...

Комментарии • 438

  • @billmaragos2812
    @billmaragos2812 5 лет назад +57

    A tip for anyone who might face the same problem: in case you use other pictures (like logos, etc) in your website, remember to give each a separate class name, instead of just 'img', so they won't overlap with those of the slider inside the css file! I spent some time trying to debug this...

    • @leonardoleggeri322
      @leonardoleggeri322 4 года назад +5

      hi could you explain me how i can do it because i wrote everything but it doesenìt still working

    • @tequilatyrant3992
      @tequilatyrant3992 4 года назад +4

      @@leonardoleggeri322 yeah I need help with that too.

    • @korage135
      @korage135 Год назад

      @@leonardoleggeri322 me too either

  • @Hobbamok
    @Hobbamok 5 лет назад +9

    Holy shit the ONLY video that actually delivers.
    20 libraries and 30 shit youtubers for some reason were further up in the google results but you have my subscription

  • @shauryamaansingh8480
    @shauryamaansingh8480 5 лет назад +3

    DarkCode, You are the best man!!
    Way better than Online Tutorials who copies your ideas.
    Never quit youtubing...you do not know the amount of people you are helping.
    A lot of Thanks!!

  • @hellonishant
    @hellonishant 6 лет назад +8

    Ultimate favourite page on youtube :) Love from India :)

  • @mohamedsief7305
    @mohamedsief7305 6 лет назад +14

    Man I've learnt a lot from your videos , you give inspiration and motivation to learn coding..
    Thanks from Egypt ✌

  • @findinglight3997
    @findinglight3997 5 лет назад +17

    thank you my friend. you helped me make a birthday present for my dad

  • @apoorv3188
    @apoorv3188 6 лет назад +41

    Was Studying HTML CSS and i got Notification from You!

    • @IUPLOADSHORTVIDEOS
      @IUPLOADSHORTVIDEOS 5 лет назад +2

      It's been 8 months did u learn css and html?

    • @PDCMYTC
      @PDCMYTC 5 лет назад +3

      @@IUPLOADSHORTVIDEOS its been 11 moths now 😊

    • @shahansam6834
      @shahansam6834 5 лет назад +2

      One year😉

    • @Royalgamer._.
      @Royalgamer._. 4 года назад +1

      1 month

    • @lesarthur
      @lesarthur 4 года назад

      @@IUPLOADSHORTVIDEOS we'll never know

  • @alextheblockchaindev
    @alextheblockchaindev 6 лет назад +9

    Cool stuff man! Keep up the good work!!!

  • @Hyokora
    @Hyokora 4 года назад +2

    css:
    body{
    margin: 0;
    padding: 0;
    }
    .slidershow{
    width: 1500px;
    height: 675px;
    overflow: hidden;
    }
    .middle{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    }
    .navigation{
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    }
    .bar{
    width: 50px;
    height: 10px;
    border: 2px solid #fff;
    margin: 6px;
    cursor: pointer;
    transition: 0.4s;
    }
    .bar:hover{
    background: #fff;
    }
    input[name="r"]{
    position: absolute;
    visibility: hidden;
    }
    .slides{
    width: 500%;
    height: 100%;
    display: flex;
    }
    .slide{
    width: 20%;
    transition: 0.6s;
    }
    .slide img{
    width: 100%;
    height: 100%;
    }
    #r1:checked ~ .s1{
    margin-left: 0;
    }
    #r2:checked ~ .s1{
    margin-left: -20%;
    }
    #r3:checked ~ .s1{
    margin-left: -40%;
    }
    #r4:checked ~ .s1{
    margin-left: -60%;
    }
    #r5:checked ~ .s1{
    margin-left: -80%;
    }

    • @Hyokora
      @Hyokora 4 года назад +1

      Oh, and if you want to make something like: "if radio is selected than change background color from transparent to white".
      just write this in css:
      .WhiteBackground{
      background-color: #fff;
      }
      ============================
      And add this script in your html:
      $(document).ready(function() {
      $('.bar').click(function() {
      $('.bar').removeClass('WhiteBackground');
      $(this).addClass('WhiteBackground');
      });
      });

  • @peepwebdev575
    @peepwebdev575 5 лет назад +6

    This is great, and you have no page jumping!! i have been searching for a pure CSS image slider. This seems to be the best model so far.

  • @vukvukasinovic3816
    @vukvukasinovic3816 6 лет назад +17

    Thank you man, you really helped, you are awesome!!!

  • @jkuhede
    @jkuhede 3 года назад

    I added this to my site and it still upholds a good look after 2 years .

  • @a_l_o_k_1991
    @a_l_o_k_1991 5 лет назад +70

    never imagined we can build it without JS :)

  • @lagimmediafiles6478
    @lagimmediafiles6478 5 лет назад +4

    The Best RUclips Tuitorial Channel i love html 5 and ccs 3....

  • @rishi2577
    @rishi2577 3 года назад +1

    I love your description

  • @aniketpatil6399
    @aniketpatil6399 6 лет назад +10

    music with dark code is awesome!

  • @dfordemo981
    @dfordemo981 5 лет назад +3

    omg, slidershow without javascript, cool man

    • @md.mahbubrahman7891
      @md.mahbubrahman7891 5 лет назад

      তুমি কে যে চোখে দেখ না। আবার নাম তো রেখেছ মুসলমান ও খৃষ্টান নিয়ে।

  • @gujaratiincanada2464
    @gujaratiincanada2464 5 лет назад

    No one is like u, i am ur fan

  • @srcreation4849
    @srcreation4849 3 года назад

    You and your all videos are awesome bro
    Thnks for helping us

  • @jeremimalefond
    @jeremimalefond 5 лет назад +2

    Thanks for the video ! If anybody as newbie as me wanna the pictures to link to another page, i finally found out ! (Not really difficult lol) --> Just put the between a link, like that :

  • @vipieri
    @vipieri 4 года назад +2

    I was suffering to make an java slideshow work in my website, thank you!

  • @zina2350
    @zina2350 3 года назад +1

    Brilliant use of input tag really. Awesome!

  • @shariarhassan4862
    @shariarhassan4862 4 года назад

    This channel is awesome!! god bless this channel.

  • @nitin-code-comedy
    @nitin-code-comedy 4 года назад +5

    I think it's much easier with js. Just move it on x axis by 100%.

  • @professordaniloalmeida
    @professordaniloalmeida 5 лет назад

    So good. CSS very elegant.

  • @HardDharajiya
    @HardDharajiya 5 лет назад +1

    Thankqq so much this is very helpful

  • @Black1Sabbath100
    @Black1Sabbath100 5 лет назад +2

    Thanks dude, your a magician!

  • @igweg7
    @igweg7 Год назад

    this is nice looks cool my website now looks matured

  • @denchill9731
    @denchill9731 4 года назад +1

    Awesome! Thank you for your videos

  • @xo5883
    @xo5883 4 года назад

    I found all of your videos soooooooooooooo awesome and great...So, I had to sub>> Thanks a lot bro..It helped me in my project..Thank u so much one again...

  • @vkvo2000
    @vkvo2000 4 года назад +2

    Exactly what I needed. But I'll change the design of buttons a bit. Thank you!😏

  • @ManishSingh-lk4qs
    @ManishSingh-lk4qs 5 лет назад +1

    Wao.... great dude..👍

  • @guerrieraction7222
    @guerrieraction7222 3 года назад

    Thank you brother God blessed you

  • @msmaryamah
    @msmaryamah 4 года назад

    Many thanks it really works ❤️

  • @HuyLe-eg8ec
    @HuyLe-eg8ec 3 года назад +1

    this is so cool, i've learnt a lot. Thanks a lot

  • @yannkowemic
    @yannkowemic 3 года назад

    Thank you so much, You are the best!!!

  • @shaikhharoon6928
    @shaikhharoon6928 4 года назад

    u r amazinggggggggggggggggggggggggggggggggg
    thank u sooooooooooooooooooooo muchhhhhhhh
    keep it upppppppppppppppp
    God Bless uuuuuuuuuu

  • @alexbladh159
    @alexbladh159 3 года назад

    This tutorial was a partyyyy!

  • @halylberdiatageldiyew5487
    @halylberdiatageldiyew5487 4 года назад

    it help me a lot thank you so much

  • @maevelerinasumbrado2837
    @maevelerinasumbrado2837 3 года назад

    Thankyou, you help me improve my html7css website project more better.

  • @shams_shimul
    @shams_shimul 4 года назад

    You're a genius! Have a good day 👍

  • @seft6682
    @seft6682 3 года назад +1

    you are the best

  • @collinsmbathi8584
    @collinsmbathi8584 4 года назад +1

    Liked and subscribed

  • @jonathanmensah5881
    @jonathanmensah5881 5 лет назад

    Legend of awesomeness!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  • @udaykiran1027
    @udaykiran1027 4 года назад

    Superr bro
    Keep it upp

  • @vinodkumar283
    @vinodkumar283 5 лет назад +1

    You saved me!! thanks a lot

  • @venkateshboda4747
    @venkateshboda4747 4 года назад

    Thank you so much 👍🥰

  • @krisnosriloka5579
    @krisnosriloka5579 4 года назад

    you are soo... good man, thanks alot

  • @nivedhagiridharan5603
    @nivedhagiridharan5603 5 лет назад

    Thank u so much dark code,it worked ♥.so helpful

  • @abhimanyubaghel
    @abhimanyubaghel 5 лет назад

    you are awesome. I learnt a lot from you.

  • @sanmidia
    @sanmidia 4 года назад

    excellent, I did and everything went well.

  • @sonamuhialdeen7866
    @sonamuhialdeen7866 3 года назад +1

    So good tutorial

  • @AkashDas-dz2jq
    @AkashDas-dz2jq 6 месяцев назад

    Very nice👍😊

  • @thangnguyenlehuy4887
    @thangnguyenlehuy4887 4 года назад

    I love it!!Thank you very much!!!

  • @aly487
    @aly487 5 лет назад

    Worked for me! Thanks a lot!!

  • @tahimdbashar5957
    @tahimdbashar5957 3 года назад

    you"re really amazing dear!!

  • @narayanib2794
    @narayanib2794 6 лет назад

    Thank you so much...it's very helpful

  • @mdjasim9205
    @mdjasim9205 4 года назад

    Thanks bro 👍👍👍👍

  • @dharmendrasingh-oz2uz
    @dharmendrasingh-oz2uz Год назад +1

    can you help me, how make three slideshow and three slideshow box on one row as e-commerce websites

  • @Dyschornzed
    @Dyschornzed 6 лет назад

    Thank you, friend i am in venezuela. Good video

  • @lusanto9
    @lusanto9 4 года назад

    Thank you very much!

  • @PaperBeatproduction
    @PaperBeatproduction 4 года назад +1

    i wrote everything like you i even double checked but the image is still big, the overflow:hidden; code doesnt work.
    i realley checked everything but this doesnt work on visual studio code!

  • @filipivanovic9556
    @filipivanovic9556 4 года назад

    perfect video
    i just want to help people who have same problem like me
    i couldnt change size of photo in css in slider show
    who has this problem have to go on image at html file and edit that here
    for example

  • @andradeweb9237
    @andradeweb9237 5 лет назад

    Hello my name is Andrade I live in Brazil and you are to be congratulated for your videos. I am studying html to create a website for me. thank you very much

  • @robsonluiz633
    @robsonluiz633 6 лет назад +4

    Nice video bro
    Can you please do a video like this but with page background changing
    Sorry for bad english, i'm brazillian

  • @johndoe-is2fw
    @johndoe-is2fw 4 года назад

    the video is on repeat because of audio xd after learning the sidebar thanks for both

  • @marcioferlan
    @marcioferlan 4 года назад +8

    Would it be possible to also implement automatic transition? Like show the next slide after 5 seconds? I know CSS has some animations and transitions features, but I don't know if they could be used to achieve this.

  • @jeroenvanrensen9505
    @jeroenvanrensen9505 6 лет назад +2

    Please make a video where you explain how Atom works! Liike this if you want this too!

  • @giorgoskalaitzis8270
    @giorgoskalaitzis8270 Год назад

    THANK YOU SO MUCH OMG

  • @DailyCuteThingsInside
    @DailyCuteThingsInside 4 года назад

    Thank you so much

  • @sanihalid
    @sanihalid 5 лет назад

    This is awesome man

  • @lesarthur
    @lesarthur 4 года назад

    Very nice thx !

  • @danieladibiasi9750
    @danieladibiasi9750 4 года назад +1

    L'Italia è con te

  • @raidenmei9085
    @raidenmei9085 5 лет назад

    Thx work for me, btw what text editor is that?

    • @mikaelsaaw8242
      @mikaelsaaw8242 5 лет назад

      It's Atom he use as a editor. Try it it's great.

  • @user-vy6ex2hy6y
    @user-vy6ex2hy6y 6 лет назад

    Nice tutorial 👍👍👍

  • @abdullahbaradia
    @abdullahbaradia 5 лет назад

    I love your work!

  • @samuelavril6548
    @samuelavril6548 6 лет назад +1

    Nice and instructive video. Tx

  • @jordiparracrespo7111
    @jordiparracrespo7111 4 года назад

    Thank you!! Amazing tutorial
    =)

  • @rhea_bunny
    @rhea_bunny 4 года назад

    This is awesome, thanks!!

  • @suyognagapurkar7088
    @suyognagapurkar7088 4 дня назад

    Thank you

  • @talabsa4108
    @talabsa4108 4 года назад

    You amazing bro

  • @saswatpradhan5549
    @saswatpradhan5549 4 года назад +7

    Why does all my pictures are joined together to show one picture in slideshow?

    • @jeremyloki318
      @jeremyloki318 4 года назад +1

      did you get a solution? I am having the same issue

  • @stacksitchannel
    @stacksitchannel 4 года назад

    I dont know who are you , but thanks you. I'm from Vietnam

  • @coderavec2mdschool2024
    @coderavec2mdschool2024 5 лет назад +1

    excellent

  • @girishchincholikar
    @girishchincholikar 5 лет назад +1

    Which editor were you using ? And did you delete some codes in between and replaced with smaller code ?

  • @fMeyer8
    @fMeyer8 4 года назад +1

    this only works for 5 ?

  • @moldovandorin6187
    @moldovandorin6187 5 лет назад

    This is really good.

  • @leartkamberi7628
    @leartkamberi7628 5 лет назад +2

    Everything is clear. I have just one question! How can you add the option, to cross from the first slide to the other automatically. For example, to stay 5 seconds and jump to the other post up to the end, and keeps repeating the same task from the begging to the end?
    Thank you in advance

    • @benop4484
      @benop4484 4 года назад

      With the use of Css Animation you can do that. Just search for it

  • @naeemulquran
    @naeemulquran 4 года назад +1

    well done

  • @sasunmadhuranga9246
    @sasunmadhuranga9246 3 года назад

    thanks 👍👍👍👍

  • @Kaleidoscope-Illya
    @Kaleidoscope-Illya 5 лет назад +3

    Nice trick, but is it possible to automate by time the transition without JS?

  • @mohammedsayeed330
    @mohammedsayeed330 5 лет назад

    I really love you 😇

  • @LeslieeGaming
    @LeslieeGaming 3 года назад

    thank you i love you

  • @Integrations1Cv8
    @Integrations1Cv8 Год назад

    Hello. Who sings the song in movie ?

  • @mobilelegends-r7u
    @mobilelegends-r7u 3 года назад

    Perfect 💙

  • @noname-ht2jn
    @noname-ht2jn 3 года назад

    How to display current position of slide in 5 slides. Can we make some active or checked type property

  • @CowMeCow
    @CowMeCow 6 лет назад +3

    I followed your Video but HTML only shows First 1.jpg image ONLY.
    I copied and pasted and changed all jpg file name from 1~5.jpg
    but it only shows 1.jpg
    what could be the proboem???

    • @mosesdaniel1924
      @mosesdaniel1924 5 лет назад

      @@yusufbilgin61 what can you explain what you did?

  • @manishmate3823
    @manishmate3823 4 года назад

    3:55 can we use a button instead of that like next button
    And how can we use
    Plzz explain

  • @nurinshafiqah9743
    @nurinshafiqah9743 4 года назад +1

    how do i arrange it to the middle of the website ?

  • @wandersonmoura4900
    @wandersonmoura4900 4 года назад

    I Loved😍😍