Simple HTML & CSS Image Slider - No jQuery or JavaScript

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ต.ค. 2024
  • ➢Tutorial Files: m.w3newbie.com...
    ➢Courses: w3newbie.com/c...
    ➢Website Resources: w3newbie.com/r...
    Create A Responsive Image Slider - HTML5/CSS3 with No JavaScript
    Popular Pure CSS Responsive Image Slider Tutorial:
    • Pure CSS Responsive Im...

ความคิดเห็น • 122

  • @dipendrabudhathoki2772
    @dipendrabudhathoki2772 3 ปีที่แล้ว +9

    thank you so much brother. I watched more than 10 different videos just to learn how to add image slider in website, and here I find the best solution.

  • @andrewdesilva3401
    @andrewdesilva3401 4 ปีที่แล้ว +19

    this is the best tutorial i ever seen so far from youtube about slideshows

    • @diptenusarkar1533
      @diptenusarkar1533 4 ปีที่แล้ว +2

      Me also

    • @ramkrushnhari9233
      @ramkrushnhari9233 4 ปีที่แล้ว +1

      Have you tried this in your pc

    • @andrewdesilva3401
      @andrewdesilva3401 4 ปีที่แล้ว +1

      @@ramkrushnhari9233 yeah it worked

    • @ramkrushnhari9233
      @ramkrushnhari9233 4 ปีที่แล้ว +1

      What all software we required for this slideshow in our pc

    • @andrewdesilva3401
      @andrewdesilva3401 4 ปีที่แล้ว +1

      @@ramkrushnhari9233 you need a text editor or a ide to write the code. I used webstorm by jetbrains or you can use simple text editor like atom. Thats all u need. Once you write the code, save it and open with the browser. very easy.

  • @yourfriend547
    @yourfriend547 25 วันที่ผ่านมา

    Like everyone else says - This really is, the best Slider video. I watched a lot of them So simple. Thank you so much

  • @shrikant124
    @shrikant124 ปีที่แล้ว +5

    Best tutorial I've ever seen. It works perfectly. Thank you!

  • @anonymousgm6006
    @anonymousgm6006 3 ปีที่แล้ว +2

    Because of you i made my first slider ever
    Thanks so much......

  • @NesteaTech
    @NesteaTech ปีที่แล้ว +2

    Best tutorial I've ever seen without a doubt OG 🔥🔥🔥

  • @markzait2750
    @markzait2750 2 ปีที่แล้ว +5

    This is a very good explanation. Thank you very much!

  • @KelvinOmoluyi
    @KelvinOmoluyi 4 หลายเดือนก่อน

    Thank you, I adore your ability to simplify it
    Well done 👍

  • @4loverhyme
    @4loverhyme 5 ปีที่แล้ว +15

    ... how does one add more than just four images and what percentages would have to change?

  • @husamhabbal1419
    @husamhabbal1419 3 ปีที่แล้ว +1

    that's really awesome, keep going with this nice short tutorials..

  • @jeeptoyota5071
    @jeeptoyota5071 2 ปีที่แล้ว +5

    this is fantastic, but i was wondering how to change the size of the images on screen?

  • @excelsus249
    @excelsus249 10 หลายเดือนก่อน

    The tutorial I've been looking for, thx 😊

    • @emmyboi3426
      @emmyboi3426 2 หลายเดือนก่อน

      Can we add more image?

  • @arronSKATERBOY1234
    @arronSKATERBOY1234 4 ปีที่แล้ว +4

    how do you change the size, its too big for me

  • @manelisieye947
    @manelisieye947 วันที่ผ่านมา

    thank you very much. It really works.

  • @ildikoedit9110
    @ildikoedit9110 2 ปีที่แล้ว +1

    It works perfectly. Thank you!!

  • @omar.faryabi1094
    @omar.faryabi1094 ปีที่แล้ว

    thank you so much the best tutorial I've ever seen.

  • @jhy241
    @jhy241 3 ปีที่แล้ว +3

    This video is very useful! Thank you!

  • @bunnylla8744
    @bunnylla8744 2 ปีที่แล้ว +1

    OMFG!!! THANK YOU SOOOO MUCH!!!! I"ve watched multiple videos just to find out how to make a slide show and only yours worked for me Thank you thank you so much! I've been figuring how to do this for 3 days 🤧
    I'm still new to this 😅

  • @lonelyplanet5474
    @lonelyplanet5474 3 ปีที่แล้ว

    thank you so much.. this is the best image slider tutorial.

  • @weirdo_jpeg
    @weirdo_jpeg หลายเดือนก่อน

    Simpler than what my teacher taught in class

  • @limitless003
    @limitless003 2 ปีที่แล้ว +1

    Bro , thanks it works 100% with me . I will subscribe because this .

  • @spaceraccoon9032
    @spaceraccoon9032 ปีที่แล้ว +1

    Amazing tutorial this helped me so much 😊

  • @bhuwansubedi3590
    @bhuwansubedi3590 4 ปีที่แล้ว

    Helped me a lot! Thanks a lot

  • @draganareljic4440
    @draganareljic4440 ปีที่แล้ว +2

    could you, please, explain the negative percentage in @keyframes? Thank you!

  • @maissacontreras5843
    @maissacontreras5843 4 ปีที่แล้ว

    i love your video, thank u so much i really need this tutorial :3

  • @yuniko3542
    @yuniko3542 4 ปีที่แล้ว +2

    How to make the pictures size to a cover set?

  • @vethumdasanayaka6274
    @vethumdasanayaka6274 2 ปีที่แล้ว

    Thank You Verry Much Sir !!
    It Works !!

  • @arthurmorgan2474
    @arthurmorgan2474 ปีที่แล้ว +1

    how to change the size of the image?

  • @YamiKeizerLeon
    @YamiKeizerLeon 7 หลายเดือนก่อน

    Great Video! Thanks~

  • @jemnax1488
    @jemnax1488 2 ปีที่แล้ว +2

    you're amazing

  • @NotNazuh
    @NotNazuh 3 ปีที่แล้ว +3

    Is there any way to do a smaller version of this?

  • @muyanjamartin658
    @muyanjamartin658 ปีที่แล้ว

    Thanks it really worked out

  • @Rio_diff
    @Rio_diff 5 หลายเดือนก่อน +1

    thank you

  • @dawmar5
    @dawmar5 ปีที่แล้ว

    Very helpful thank you for this video

  • @lekhareddylekhareddy9577
    @lekhareddylekhareddy9577 ปีที่แล้ว

    Thank you very much it helped me alott

  • @mauricioroda2789
    @mauricioroda2789 4 ปีที่แล้ว

    I find tis video very informative and well presented. New subscriber over here. Thanks for the great info.

  • @emaan7023
    @emaan7023 ปีที่แล้ว +1

    I'm doing this, but the images are not that size, they are a lot smaller. How do I change this?

    • @RobertaDeBBeal
      @RobertaDeBBeal ปีที่แล้ว +1

      I would like to know that to!!

  • @NickBurgoyne
    @NickBurgoyne 2 ปีที่แล้ว +1

    Thank you!

  • @Sonalieskin-g7n
    @Sonalieskin-g7n 5 หลายเดือนก่อน +1

    Thank u dr

  • @therufus5195
    @therufus5195 3 ปีที่แล้ว +1

    Super helpful 👍

  • @heyt0pe
    @heyt0pe 4 ปีที่แล้ว +1

    Thank you so much for this

  • @AK-Star007
    @AK-Star007 2 ปีที่แล้ว +1

    can we reduce image size? and further how to adjust different size images in one slider.
    thanx

    • @joerivandeweyer3056
      @joerivandeweyer3056 2 ปีที่แล้ว +1

      yeah if op sees this i bet there's other who would like to see this answered. it's a hassle trying to get in the right images, let alone trying to get the figure itself to resize to a smaller box without f-ing up the ratios set for the images according to their amount and slide time

  • @brunoalmeida6633
    @brunoalmeida6633 4 ปีที่แล้ว

    Thanks so much from Lisbon :)

  • @emmyboi3426
    @emmyboi3426 2 หลายเดือนก่อน

    CAN WE ADD MORE IMAGE?

  • @hoffmannted-frank8618
    @hoffmannted-frank8618 9 หลายเดือนก่อน

    Thank you so mutch

  • @diptenusarkar1533
    @diptenusarkar1533 4 ปีที่แล้ว

    Amazing Sir It's Really Good
    Thank You Sir

  • @nikhildaiya
    @nikhildaiya 4 ปีที่แล้ว

    So very very very much thanks broooooooo

  • @kaushalyalakshitha9682
    @kaushalyalakshitha9682 3 ปีที่แล้ว +1

    i download this video to learn

  • @AjayKumar-gg4ds
    @AjayKumar-gg4ds 10 หลายเดือนก่อน

    Very. Nice

  • @Sockpoppet
    @Sockpoppet ปีที่แล้ว

    Is there a way to write the code, so that it shows any image inside the folder, without having to type the full name of the image?

  • @MikeGarcia1Putt
    @MikeGarcia1Putt 4 ปีที่แล้ว

    Well Done!. I am using this slider on my website.

  • @Mrkafirr
    @Mrkafirr 3 ปีที่แล้ว

    That was amazing

  • @Hitz_PreciosityWorld
    @Hitz_PreciosityWorld หลายเดือนก่อน

    it's not working at my end

  • @kaushalyalakshitha9682
    @kaushalyalakshitha9682 3 ปีที่แล้ว

    thank you for your help😊😊😊😊😊😊

  • @odogwunwoke7319
    @odogwunwoke7319 2 ปีที่แล้ว +1

    i’m trying to do 4 images

  • @creed5945
    @creed5945 3 ปีที่แล้ว

    God bless you but how do I size the slideshow onto ananother page

  • @ninjara
    @ninjara 4 ปีที่แล้ว

    Thank you so much.

  • @ambareen2368
    @ambareen2368 4 ปีที่แล้ว

    What's the difference between styling #slider and styling #slider figure. Aren't they both going to style the same thing? (i.e. all the images)

  • @theredpill7897
    @theredpill7897 4 ปีที่แล้ว

    added jpeg images then changed it to png images when it didnt show up on my site...Double checked my code and I did everything correctly. I wonder why its not working.

  • @moncere
    @moncere 3 ปีที่แล้ว

    Nice video ‍🔥

  • @dalilaalllik8586
    @dalilaalllik8586 3 ปีที่แล้ว

    why it's not working I
    did exactly what he did
    just the image that shows not the slider

  • @Dandike2017-
    @Dandike2017- ปีที่แล้ว

    I don´t know how to embed this slider into a WordPress page!!

  • @dasaridaniel5357
    @dasaridaniel5357 3 ปีที่แล้ว

    thank you so much

  • @joerivandeweyer3056
    @joerivandeweyer3056 2 ปีที่แล้ว +1

    i bet there's other who would like to see this answered. it's a hassle trying to get in the right images, let alone trying to get the figure itself to resize to a smaller box without f-ing up the ratios set for the images according to their amount and slide time

  • @benjaminwusthofen8957
    @benjaminwusthofen8957 ปีที่แล้ว

    hi, thanks for the tutorial.
    What i must change, when i have only 3 jpg for the slider to show correctly?
    Thank you :)

    • @w3newbie
      @w3newbie  ปีที่แล้ว

      Hello, you need to change the number of keyframe transitions and the percentages. I don't have the tutorial code in front of me.. but I believe it was a 5% gap for each unique slide making the transition.

  • @nadirdamidz6102
    @nadirdamidz6102 2 ปีที่แล้ว

    It work thanks 😘

  • @mathdessin6755
    @mathdessin6755 3 ปีที่แล้ว

    animation doesn't work with Firefox? Copied exactly like you but no movement at all

    • @w3newbie
      @w3newbie  3 ปีที่แล้ว

      Hey just checked Firefox, Chrome, Safari, and it's working fine for me. Check the completed files in the description.

    • @Mrguaxinim
      @Mrguaxinim ปีที่แล้ว

      Try using -webkit

  • @abdulazizazimov9470
    @abdulazizazimov9470 ปีที่แล้ว

    SUPERRRR

  • @matrix3596
    @matrix3596 4 ปีที่แล้ว

    bro thank u soo much

  • @paucedones2874
    @paucedones2874 4 ปีที่แล้ว

    all of my website desapear when I put the slider because of the witdh 500%

  • @indramayukotaku7588
    @indramayukotaku7588 4 ปีที่แล้ว

    why my picture doesn't appear

  • @spacesrealestate8899
    @spacesrealestate8899 4 ปีที่แล้ว

    How do you do more than 5 images?

  • @JustineBiado
    @JustineBiado 3 หลายเดือนก่อน

    can i have the code sir

  • @goodmeme980
    @goodmeme980 3 ปีที่แล้ว

    whats the resolution of the image that you use?

  • @Ralph4445
    @Ralph4445 3 ปีที่แล้ว

    doesn't work on VScode

  • @siddarthakadali7719
    @siddarthakadali7719 ปีที่แล้ว +2

    not the clear explanation for beginners

    • @codekky4526
      @codekky4526 ปีที่แล้ว

      google "codekky blog" for better explanation and tutorial

  • @Wood-16
    @Wood-16 4 ปีที่แล้ว

    all of my images (5) are sliding off screen to the left for a while then then slide back onto the screen. What am I doing wrong? I have used images using link address from a website instead of saved images from a file, could this be causing it?

    • @ramkrushnhari9233
      @ramkrushnhari9233 4 ปีที่แล้ว

      Will you please help me

    • @ramkrushnhari9233
      @ramkrushnhari9233 4 ปีที่แล้ว

      Means what software we required to do slideshow like this

  • @rodneyschmuland1132
    @rodneyschmuland1132 ปีที่แล้ว

    Too restrictive....can't code for varying numbers of slides, i.e. too many %s.

  • @mck7382
    @mck7382 2 ปีที่แล้ว

    keyframes slider error

  • @TrangLe-dp8jf
    @TrangLe-dp8jf 4 ปีที่แล้ว

    Is this responsive?

  • @mateusk20
    @mateusk20 4 ปีที่แล้ว

    excellent video !! Would you like to know the name of this sublime text theme?

  • @faresfares2495
    @faresfares2495 4 ปีที่แล้ว

    It not work
    Why💔💔

  • @parthparikh9624
    @parthparikh9624 4 ปีที่แล้ว +1

    What if we got 5 images how the keyframes percentages will be pls someone reply

    • @wickedgent5555
      @wickedgent5555 4 ปีที่แล้ว

      it depends on the percentage the width of your image takes...for example his was 20%

  • @nawel4862
    @nawel4862 3 ปีที่แล้ว

  • @parthparikh9624
    @parthparikh9624 4 ปีที่แล้ว

    Subscribed

  • @BillyLoweBeauty
    @BillyLoweBeauty 6 ปีที่แล้ว

    AND HOW DID YOU DECIDE 20, 50, 75, 90, WAHTEVER % WHEN MOVING AHEAD?

    • @richardramos7267
      @richardramos7267 5 ปีที่แล้ว +7

      That's how you control how fast the image is going to change from image to another image, if you want an exact calculation then here you go..
      For example, we want a total of 10 second animation, but want to allocate a total of 1 second transition change from image to another image, and we have 5 images, the calculation would be..
      9/4 = 2.25, we now know that we have 2.25 second to see every image before the transition takes effect, You might ask, if we have 5 images, why 9/4 ?, it's because the final image and the first image is the same, and the animation-iteration-count is infinite, so it will loop anyways,
      now to get the animation transition speed, we will divide 1 by 4, 1/4 = 0.25,
      Now let's convert them to percentage so that we can use them to keyframes
      2.25 second / 10 * 100 = 22.5%,
      and for animation transition speed: 0.25/10 *100 = 2.5%;
      now we can construct our keyframes
      @keyframes slide{
      0%{
      left: 0;
      }
      22.5%{
      left: 0;
      }
      /*0 to 2.5 second (which is 22.5 in percentage) we want to stop the animation to see image1*/
      25%{
      left: -100%;
      }
      /*then, we add the transition speed here, which is 0.25 second (which is 2.5%) so we should add 22.5% + 2.5% = 25%*/
      /*NOTE: Same explanation Apply to the rest of the animation here for the total of 0% - 100% */
      47.5%{
      left: -100%;
      }
      50%{
      left: -200%;
      }
      72.5%{
      left: -200%;
      }
      75%{
      left: -300%;
      }
      97.5%{
      left: -300%;
      }
      100%{
      left: -400%;
      }
      }
      Here is the project file for this, with explanation.
      codepen.io/anon/pen/qLdwxr?editors=0100

    • @parthparikh9624
      @parthparikh9624 4 ปีที่แล้ว +2

      @@richardramos7267 May you and your family lives a long and happy life.

    • @arthurmorgan2474
      @arthurmorgan2474 ปีที่แล้ว

      @@richardramos7267 bro do you know how to minimize the size of the image? i want it to fit inside the container i made

  • @arifpatan7180
    @arifpatan7180 3 ปีที่แล้ว

    Sir I'd will use in onetime

  • @brianjett1446
    @brianjett1446 4 ปีที่แล้ว

    Does it matter of the size of the image you're using? Or do it have to be a specific size to work.

    • @sharriceowens913
      @sharriceowens913 3 ปีที่แล้ว

      it seems so every slider i do i can get it to move but the sizes are not right. i get this issue no matter whoes video i watch on sliders

  • @ohkarsworld1500
    @ohkarsworld1500 3 ปีที่แล้ว

    thank for tutorial but i don't like this kind of slide

  • @aarabhyarajan2389
    @aarabhyarajan2389 3 ปีที่แล้ว

    2:23

  • @BillyLoweBeauty
    @BillyLoweBeauty 6 ปีที่แล้ว

    WHAT WAS THE POINT IN GOING BACKWARDS ON EACH ONE?? YOU LOST ME

    • @richardramos7267
      @richardramos7267 5 ปีที่แล้ว +6

      Because if you put a positive number instead of negative, then your left point perspective is going to move to right, while negative number, will move from left to negative left, which will reveal the other images that are on the right position.
      Here is an example illustration.
      As you can see, the screen area/visible area only see the img1.
      [SCREEN AREA.]
      [SCREEN AREA.]
      Now let's move 100% from left to left, which is negative 100%;
      [SCREEN AREA.]
      now img2 is visible
      [SCREEN AREA.]
      now move -200%;
      [SCREEN AREA.]
      now img3 is visible
      [SCREEN AREA.]
      now move -300%;
      [SCREEN AREA.]
      now img4 is visible
      [SCREEN AREA.]
      now move -400%;
      [SCREEN AREA.]
      now img5 is visible
      [SCREEN AREA.]

  • @KuchingProperty
    @KuchingProperty 3 ปีที่แล้ว

    When you teach something, you must have some logics. We are beginners. We copied your html and css. You gave us an example of so big image and we don't know how to amend it smaller to fit our website. sigh... It's really headache. Failed. I cannot even do a simple carousel. The slider is too fast and it will make my customers giddy and they definitely won't buy anything from me if I used your slider example. Image too big and sliding too fast and no clicking of pausing image.

    • @w3newbie
      @w3newbie  3 ปีที่แล้ว

      Please see my Bootstrap slider video as it is easier to have controls.

  • @goudemarc6488
    @goudemarc6488 ปีที่แล้ว

    Thank you so much for this video it's great

  • @gagikavagyan9920
    @gagikavagyan9920 4 ปีที่แล้ว +1

    Thank you

  • @alexanderurezchenko6446
    @alexanderurezchenko6446 4 ปีที่แล้ว

    Thanks!