Creating Automatic CSS Image slider with CSS3 animation & HTML5 | No Javascript or Jquery - Tutorial

Поделиться
HTML-код
  • Опубликовано: 7 сен 2024
  • Let's learn how to create an automatic CSS image slider with the help of CSS3 animations and transforms without using any line of javascript or jquery. Creating a pure CSS slider or HTML and CSS carousel was never been so easier. And if you think for the first time, you may wonder how will the slides move around without js or jquery, well that's the magic of CSS animation, @keyframe rule and transforms.
    I'll start off by creating a simple HTML structure for our automatic Image slider and then we will style it using CSS. This CSS image slider will contain four different images, which serves as a slide for each turn, these slides will automatically slide after few seconds of gap. This will make it look like an auto playing slide show which we have created only with CSS.
    This simple CSS image slider is great to demonstrate the power of css3 animation property. The purpose of this video is to show the possibilities of CSS animation. You can take this image slider further to make it look like a content slider by adding some extra markup.
    ===========CSS SLIDER SOURCE CODE==============
    goo.gl/88uMd6
    ============Useful Tutorials=============
    Creating a stitched border look with css
    • CSS Stitched Border Ef...
    Creating Multiple borders effect using CSS
    goo.gl/UbVmwR
    Creating Multilevel horizontal Navigation Bar using Flexbox
    goo.gl/Erkzp6
    Creating Simple Responsive Horizontal Menu using CSS3 Flex
    goo.gl/8efLMN
    Creating a Masonry Layout Using Pure CSS3
    goo.gl/QFNVJa
    Creating a Custom Select Box Element
    goo.gl/uj46tI
    How to create simple css3 preloading animation
    goo.gl/GqjXCr
    How to add preloader to your web page using javascript
    goo.gl/ZugNcP

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

  • @GaneshShinde-iu5kf
    @GaneshShinde-iu5kf 2 года назад

    Perfect! Thank you for this awesome video!

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

    Great! I'd been searching for a while on how to implement a simple automatic slideshow using only HTML and CSS, and now I have found it! Not only that, your explanation is so clear and concise. Thank you very much!

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

      Thank you so much for your kind words! I am glad it was helpful for you. I am really sorry for the delayed response. Let me know if you have any other video suggestions.

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

    i really love how indian guys can solve any problem in the world

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

    Absolutely fantastic. Just what I was looking for. Super explanation. Your demo has allowed me to understand how to make alterations with knowledge. Thank you so much.

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

      It's a great pleasure Jobey, I am really exhilarated by your kind feedback. :)

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

    Woah good job, this just taught me a bunch and helped me better grasp a few things I already knew!

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

    Thank you very much. Very good and clear to the point tutorial. Job well done.

  • @arunkaiser
    @arunkaiser 7 лет назад +3

    Awesome tutorial dude very nice one :)

    • @smashtheshell
      @smashtheshell  7 лет назад

      Hi Arun, thanks for your feedback! 🙂

  • @user-pt4oy5dm9e
    @user-pt4oy5dm9e 5 лет назад

    Amazing! just what i needed!

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

    Thank you for the tutorial! really help :D

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

    man, you are talented...keep it up

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

      Hey Jeremiah Azubuike, Thanks for your kind words! :)

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

    THANK YOU

  • @ga7853
    @ga7853 7 лет назад

    Thank you, that was remarkable.

  • @VinhLe-gc8ws
    @VinhLe-gc8ws 6 лет назад

    Gotta like and a new sub! Very thorough and explained scenarios you can run into and fix them! Very detaild and worked fine!
    If i use the new css grid would i still display flex or display grid?

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

    awsome

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

    I love it, just not sure how to put it to the right next to my logo image in the header. The logo has float: left and so I did with the slider, but the slider still appears under the logo.

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

      Hi Anna, I am glad it helped you. You need to show the screenshot of what you're trying to achieve.

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

      There was some problem with width only. I already fixed it :-)

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

      @@annabrabec2600 great! 😊

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

    thank you! but what if i have only 3 images? please help thanks

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

    why my website only can show image no have the flow of slide?

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

    This is great, but what if you have more than 4 images? I need a slide show that needs to show more than 4 images.

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

    I just told it like it is. The alternate reverse function didn't seem to work too well so all I have done is to programmatically reverse to timing 'slices' and that does the trick. Because you had explained it so well it was a simple task to do it the way I have done it. www.turunccatsprotection.com/new_test.htm still under development at the moment.

  • @umerseries1686
    @umerseries1686 2 года назад

    where is javascript code

    • @smashtheshell
      @smashtheshell  2 года назад

      Hey this is purely made in css only you don't need any JavaScript! Good it helps.

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

    the g.o.a.t even included the code