Auto Image Slideshow using HTML and CSS

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ส.ค. 2024
  • *Source Code is In the Description!
    This video is about how to create auto image slider ( image slideshow ) using only html and css
    *Full Project : www.patreon.co...
    Source Code Only : tutorials-ware...
    ------------------------------------------------------
    • Visit Our Social Media:
    - Instagram : / codeinstinctofficial
    - Facebook (New): / code-instinct-10845813...
    ----- -------- ------- -------- -------- ------- -------
    - Code Editor: Visual Studio Code
    - Recorded with : NVIDIA Shadowplay
    ----- -------- ------- -------- -------- ------- -------
    • Music Info:
    Music: Gravity by extenz
    / extenz
    Video Link: • Video
    License: creativecommon...
    ------ -------- --------- --------- -------- ---------
    Video Created By: R.Y Baskara

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

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

    To add more pics to the slideshow, add +1200px width to .slide-images for every picture and change the slide_animation percentage values around so you have -1200 per image.
    pic nr 4 will be placed at -1200px and needs 4800 slide-images width and 5 will be placed at -2400px and needs 6000 slide-images width and so on!
    Good luck to all website creators!

    • @Miguel-ey2uv
      @Miguel-ey2uv 4 ปีที่แล้ว +1

      I need help bro
      For example if i want to add 5 images?

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

      so i must change all the percent into -1200 or minus -1200 to the all percent

    • @nohael-hindy8972
      @nohael-hindy8972 3 ปีที่แล้ว

      very helpful, thank you

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

      Where is the slide animation percentage?

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

      @@manthan7535 3:48 in video :)

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

    My pixs is showing but my slide show ain't working i.e its not moving at all just the first picture showing in the background

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

    Error:Also define the standard property 'animation-iteration-count' for compatibilitycss(vendorPrefix).What to do?

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

    dont working my -webkit-animation is underline and its not working. No animation , only show photo

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

      Same here , I did same like that . I don’t know where is error. Please help us @admin.

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

      Guys instead of webkits try this
      @keyframes slide_animation{
      0%{left: 0px;}
      10%{left: 0px;}
      20%{left: 1200px;}
      30%{left: 1200px;}
      40%{left: 2400px;}
      50%{left: 2400px;}
      60%{left: 1200px;}
      70%{left: 1200px;}
      80%{left: 0px;}
      90%{left: 0px;}
      100%{left: 0px;}
      }
      .slide-images{
      width: 3600px;
      height: 800px;
      margin: 0 0 0 -2400px;
      position: relative;
      animation-name: slide_animation;
      animation-duration: 33s;
      animation-iteration-count: infinite;
      animation-direction: alternate-reverse;
      animation-play-state: running;
      }

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

      @@talhasiddiqui4780 You are a legend mate, this is the only solution that works in 2022!

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

      ​@@talhasiddiqui4780 I am new on coding, can you please explain the theory behind this percentage and the pixels. I see 0 repeated many times. I really need to understand than I can do it myself.
      If someone could help... Thanks.

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

      dont try to understand the pixel or pourcentages just try them yourself , see what fits and whats not it only takes time good luck@@boasmasso

  • @user-gk6zj1kh1r
    @user-gk6zj1kh1r 5 ปีที่แล้ว +7

    amazing. You cant imagine how this helped me. Im learning CSS and HTML and i try to build a project with image slider, but i know nothing about javascript.. and showing that you can do this with animation CSS is just amazing.! great! thank you. I will copy your code to my reference folder and it will live there forever! Thanks
    P.s. great song

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

    how adjust the scale or size of the images

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

    I needed it , that's why I am here. thanks!!

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

    Hi Sir, Slider cmd is not showing in my vs code, Pls help

  • @PP-hy1rh
    @PP-hy1rh 5 ปีที่แล้ว +5

    Wat is @webkit-keyframes?

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

    Really it works 100%,
    you are amazing...

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

    its not even working. look in the video there is dark green underline at -webkit-keyframes and at .slide-images. isn't that error?

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

    Doesn't work it only shows pics

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

    Webkit keyframes is yellow its not working

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

    Can you help me?
    Why do my other photos won't show up?

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

    What is wrong with the link to your source code. It's just an add

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

      My Virus Checker blocked it as Malware. Check your machine for viruses.......!!!!!!!

  • @mr.atharvchavan
    @mr.atharvchavan 2 หลายเดือนก่อน +1

    Not working properly

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

    Hey! I'm trying to implement it to my website. However, a problem is arising. When i scroll the page, the slideshow of images is going over my menu bar. Can you please tell me how to fix it?

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

    Hello, how to build this effect at time 0:03, where the line runs from right to left and then becomes a vertical line showing the logo

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

    Not working I used 3 images and all the codes but it. Show only 1 img and it not sliding it is going up and down on scroll and also get over through my freeze header

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

    My images kept stacking ontop each other. it only worked when i set the display of the slide-container to flex.

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

    okay how do i link the photo with my own? every time i try it does not work

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

    I'm working with codepen. Do I need some kind of library?

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

    Hi, friend, yes, it is an add... Probably, if you publish your code as zip file it may be more safe.. hope to hear your response...

  • @daviddarko-mensah9297
    @daviddarko-mensah9297 8 หลายเดือนก่อน

    @webkit-keyframe is doing what, and what must i use same

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

    There is no slideshow showing on mine only the images..may I know if how to fix it?

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

    bro there is any rue all image must be same width and height ? when i try with different h X w images its working sliding but i cant view image perfectly

    • @CodeInstinct
      @CodeInstinct  5 ปีที่แล้ว

      We suggest you put the images in the same widths and heights

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

    Thanks it worked 🤲🏾💥but how can I align it with all the other content on the page ?!!

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

    It works but caught error using webkit what to do

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

    your video caught my eyes!!!!

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

    I made it same as you but I dont't see results: I tried on Chrome, brave ... I see only changed background. Ikd why it dosen't work.

  • @MdSharifulhaq-ie2bv
    @MdSharifulhaq-ie2bv ปีที่แล้ว +1

    thaks boss

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

    Thank you so much this was sooooo helpful

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

    Great video but it really needs some more explanation

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

    How to change the images to slide to right side what line have to change in that coding????

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

    Please add the codes in description

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

    only thing that bothers me is that the images when sliding they don't go together, theres a gap between images, anyone knows how to fix?

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

      Use images that are at least 1200 px wide

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

    Great job

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

    I used this code. I have more than 50 images, but only 5 images showing..what can i do ?

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

      Will you please help me means what all application we required to download in our laptop

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

      Please help

    • @evan.5967
      @evan.5967 3 ปีที่แล้ว

      @@ramkrushnhari9233 stfu

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

      To add more pics to the slideshow, add +1200px width to .slide-images for every picture and change the slide_animation percentage values around so you have -1200 per image.
      pic nr 4 will be placed at -1200px and needs 4800 slide-images width and 5 will be placed at -2400px and needs 6000 slide-images width and so on!
      from the pined comment

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

    Not understanding what is happening

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

    How to add videos instead of images in the same concept??

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

    Ive really enjoy watch you videos. Glad you’re back. I was wondering if I could possibly become a student of you and learn. If you’re free.

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

      hello there, thanks for visiting our channel. we are working on upcoming youtube projects. thank you for supporting our channel!! 👍

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

      I will keep supporting thank you.

    • @coofciise2663
      @coofciise2663 5 ปีที่แล้ว

      @@CodeInstinct gvhfg

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

      This comment made me subscribe this channel

  • @user-kt5ut9ey8w
    @user-kt5ut9ey8w 11 หลายเดือนก่อน

    My images aren't loading how to fix?

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

    nicely done, thank you

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

    is this working in 2022? Images don't move.

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

    Nice! :D

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

    can the pictures linked to a website? href?

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

    can I do this with text?

  • @user-kt5ut9ey8w
    @user-kt5ut9ey8w 11 หลายเดือนก่อน

    My images aren't loading

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

    No longer works in 2022. I followed this tutorial verbatim, but my photos stay still

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

      Eh?!

  • @luca-qf5ni
    @luca-qf5ni 3 ปีที่แล้ว

    And how a make it responsive? With a tool ore something? I used bootstrap and it's still not working? Does anyone know what the solution is?
    Tahts will be great.
    :)

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

    can you give source code

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

    Bro it's not working

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

    it's not working

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

    How i Can add toi Blocher?

  • @aboutthebook5275
    @aboutthebook5275 5 ปีที่แล้ว

    Your video are great, thank you.

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

      whch application are used in this video

    • @user-ld8dz8qn8r
      @user-ld8dz8qn8r 20 วันที่ผ่านมา

      ⁠VS Code

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

    hello, i used 6 images and only 3 appear in the animation. Also the slideshow is kinda to the right so there is an horizontal scroll bar. Do I have to use smaller images?

    • @evan.5967
      @evan.5967 3 ปีที่แล้ว

      Or you can adjust the width.

    • @evan.5967
      @evan.5967 3 ปีที่แล้ว

      And do overflow attribute in CSS

    • @evan.5967
      @evan.5967 3 ปีที่แล้ว +1

      And Margin

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

    can i get the source code..?

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

    What would the code be if I needed to hyperlink the images?

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

    It didn't work for me at all

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

    Thanks bro

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

    Your Vs theme name?

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

    It goes way to fast to type side by side.

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

    Is it responsive..

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

    what is webkit ? How to download it?please give me a link

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

      instead of webkits try this
      @keyframes slide_animation{
      0%{left: 0px;}
      10%{left: 0px;}
      20%{left: 1200px;}
      30%{left: 1200px;}
      40%{left: 2400px;}
      50%{left: 2400px;}
      60%{left: 1200px;}
      70%{left: 1200px;}
      80%{left: 0px;}
      90%{left: 0px;}
      100%{left: 0px;}
      }
      .slide-images{
      width: 3600px;
      height: 800px;
      margin: 0 0 0 -2400px;
      position: relative;
      animation-name: slide_animation;
      animation-duration: 33s;
      animation-iteration-count: infinite;
      animation-direction: alternate-reverse;
      animation-play-state: running;
      }

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

    Source code?

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

    Thanks

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

    source code?

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

    it didnt work for me. do i need any Source code like webkit keyframes etc?

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

      instead of webkit try this
      @keyframes slide_animation{
      0%{left: 0px;}
      10%{left: 0px;}
      20%{left: 1200px;}
      30%{left: 1200px;}
      40%{left: 2400px;}
      50%{left: 2400px;}
      60%{left: 1200px;}
      70%{left: 1200px;}
      80%{left: 0px;}
      90%{left: 0px;}
      100%{left: 0px;}
      }
      .slide-images{
      width: 3600px;
      height: 800px;
      margin: 0 0 0 -2400px;
      position: relative;
      animation-name: slide_animation;
      animation-duration: 33s;
      animation-iteration-count: infinite;
      animation-direction: alternate-reverse;
      animation-play-state: running;
      }

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

      @@talhasiddiqui4780 lol thx for replying amd helping but I don't even know if I am gonna use this now 😅 but thx anyway 😀

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

      @@MontyEditz 😁😁😅😅

  • @HardDharajiya
    @HardDharajiya 5 ปีที่แล้ว

    Great very helpful bro🤘👑

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

    hi, how can you make it responsive?

    • @luca-qf5ni
      @luca-qf5ni 3 ปีที่แล้ว

      Did you get it? Maybe?
      I don't check it, can you help me out if you have it?

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

    Tnx

  • @verontetteh-nortey3616
    @verontetteh-nortey3616 2 ปีที่แล้ว

    I'm having some difficulties here

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

    What code editor are you using?

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

      Its Visual Studio Code

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

    Can you do this without having to declare each image in the code? I've been looking for a way to do something like this, but have the code point to a folder/directory where I store all my images, and all I have to do is load the folder with all the images I want to display. At the same time, I want the image to be scaled up or down automatically to fill the entire browser window, even if the user stretches or re-sizes the window. I've been looking for a way to set this up so that I can have this serve as an 'intermission' screen in OBS, whenever I stream myself playing a game. As I play the game, I would take screenshots of my game...... and I was hoping to be able to dynamically feed those images into the background of my page (hosted locally) to serve as background images with a blur applied to them, whenever the code progresses to each consecutive image. The foreground I currently have is just a large form/text box that will allow me to either type out my commentary, or just a way for me to indicate to my viewers that I'm AFK. I even have a pure CSS timer, below that box to show exactly how long I've been away.

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

      You're going to need to use either JavaScript or a framework like Bootstrap, Foundation or Bulma. Can't with just HTML and CSS unfortunately.

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

      use js

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

    please provide source code also

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

    why isn't it working, the images arent popping up and the css works fine.

    • @distra_oce1360
      @distra_oce1360 5 ปีที่แล้ว

      and when i remove the css the images pop up

    • @evan.5967
      @evan.5967 3 ปีที่แล้ว

      @@distra_oce1360 hey, how may I help?

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

    float does't working

    • @evan.5967
      @evan.5967 3 ปีที่แล้ว

      exaplain more

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

    can you please tell how to resize it such that the length occupies whole screen

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

      Use the width, height on css?

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

      Use the width, height on css?

    • @023__yashchaudhary9
      @023__yashchaudhary9 2 ปีที่แล้ว

      @@someoneees yup

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

    how many images can we add to our slide show????????????????

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

    Very helpful

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

    the slide is too large, can;t even fit my website screen

    • @evan.5967
      @evan.5967 3 ปีที่แล้ว

      well he's not going to do everything for you smh 😹
      you have to apply your own logic

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

    6:00

  • @alvinaprastika1193
    @alvinaprastika1193 5 ปีที่แล้ว

    ❤❤❤❤❤

  • @cerracerra9710
    @cerracerra9710 5 ปีที่แล้ว

    😊

  • @aminaamrouche3236
    @aminaamrouche3236 5 ปีที่แล้ว

    the background is repeating any way :'(

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

      You can do background: no-repeat;

    • @evan.5967
      @evan.5967 3 ปีที่แล้ว

      hey
      you can do background:no-repeat;

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

    How can I add more images in my slide ?

    • @squareadventuretv6882
      @squareadventuretv6882 5 ปีที่แล้ว

      please answer this question , i have the same problem

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

      i need an answer to this!!

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

      To add more pics to the slideshow, add +1200px width to .slide-images for every picture and change the slide_animation percentage values around so you have -1200 per image.
      pic nr 4 will be placed at -1200px and needs 4800 slide-images width and 5 will be placed at -2400px and needs 6000 slide-images width and so on!

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

      @@squareadventuretv6882 To add more pics to the slideshow, add +1200px width to .slide-images for every picture and change the slide_animation percentage values around so you have -1200 per image.
      pic nr 4 will be placed at -1200px and needs 4800 slide-images width and 5 will be placed at -2400px and needs 6000 slide-images width and so on!

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

      @@Vichion What do you mean with the slide_animation percentages to -1200px. It runs from 0% to 100% with its respective pixel counts. So which ones do i change? I want to have a total of 5 images.