jQuery Image Slider - Quick & Easy

Поделиться
HTML-код
  • Опубликовано: 10 сен 2024
  • In this video we will build a very simple jQuery image slider or image switcher. We will use a little css for styling as well.
    CODE: Code for this video
    www.traversymed...
    IMAGES ONLY:
    www.traversymed...
    VISIT US:
    www.traversymed...
    EDUONIX COURSES: Pleas use affiliate links from website below
    www.traversymed...
    SUPPORT: We spend massive amounts of time creating these free videos, please donate to show your support:
    / traversymedia
    www.paypal.me/t...
    FOLLOW TRAVERSY MEDIA:
    / traversymedia
    / traversymedia
    / bradtraversy

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

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

    you're simply the best web programming tutor. Thanks Brad

  • @AlphaScorpii86
    @AlphaScorpii86 7 лет назад +18

    Teaching is a gift. Thanks for your good work! :-)

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

    5 years on and Brad is still coming to the rescue with his tutorials

  • @jonathanpeeters7350
    @jonathanpeeters7350 6 лет назад +7

    you saved me on my last project thanks alot man very clear guide to follow

  • @MohamedAli-px6gr
    @MohamedAli-px6gr 6 лет назад +1

    One of the best instructors I've seen so far, Thanks Man !

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

    this is good stuff ! this is why i keep commenting on insta post about " best web dev bloggers " who keeps forgetting you in them !

  • @takeniteasyfriend
    @takeniteasyfriend 7 лет назад +5

    Checking out your jQuery course next! Thanks. My next challenge is how to make a continuous rotation.

  • @pranalislifebook7336
    @pranalislifebook7336 3 года назад +2

    where are images i am not able to download plz help me for this

  • @albertgalvez2556
    @albertgalvez2556 7 лет назад +4

    Thank you, this is my first time getting my feet wet with JQuery.

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

      Albert Galvez did you catch cold?

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

    waaauw man just what I needed dude , I was searching for sliders like crazy and not one of them fit my need as well a my lack of knowledge how to customize them. This is really helpfull man and it had giving me great insight man, I ll buy you a cup of coffee asap !!!!

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

    Wow, great video,
    Recommending this for my bro ASAP.

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

    Great tut.
    Traversy media is a blessings from Ue.
    You have a hug fan base in Bangladesh 🇧🇩

  • @leandrodossantos9160
    @leandrodossantos9160 7 лет назад +1

    I really like this video format, thanks for putting out there!

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

    Thank you, it's working for me very well. I add an infinitive loop to it and now I have a complete slideshow​ :)

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

      how

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

      @@hassanaliraza9208 my way: set id to first and last components and add 'else' condition in your code to add active class to the first or last and to remove the active class from current.

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

      @@k0kuyo133 bro can u help with code , im beginner in js

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

    Thank you a lot, after having watched many videos, now by your simple and very clear explaination, I'v succeed to create what I wanted :) very very grateful !

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

    Dear Sir,
    image slider is working fine on pc site but slider not showing on mobile.
    plz share code to add so that slider should show on mobile.
    plz guide me.
    Thanx Sir.

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

    It is so good and perfect .thank you bro.God Bless you .

  • @karinamedina8160
    @karinamedina8160 7 лет назад +1

    Your videos are the best.
    Great work !

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

    thank u so much, it more easier with jquery and your explain

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

    Nice & Easy ....just the way I like it - thanks!

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

    So why did you include the outer class? You didn't define any size parameters for it in the css file, so what was the point in having it?

  • @d.andreea8419
    @d.andreea8419 7 лет назад +2

    I really like your videos! Keep going.

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

      Douda Andreea In sfarsit un roman =))

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

    Hello , Brad Traversy ... I'm using ATOM text editor but after some days my CPC memory Usage 100% when i'm using ATOM text editor ... Please Give me Solution how to fix it.

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

    Thank for your video. Easy to understand.

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

    Hey this is awesome. Thank you very much

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

    Will this work five years later and I have to download the library.

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

    I literally am stuck on making this work with my wrapper div, which sits in my body div. My css contains a css reset as well as the styling for the exiting elements on my site. the Script works great, it's just that the elements in the slider div are appearing stacked instead of inline and on top of one another based up how it's displayed in this video. Can anyone help me?

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

    Thank you, this video was very helpful.

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

    Great tutorial. Thanks!

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

    like a pro. thanks man

  • @IamTiernO
    @IamTiernO 7 лет назад +1

    Jquery is my favourite, I just wish I knew it better haha

  • @ghezalmohammedamine7057
    @ghezalmohammedamine7057 7 лет назад +1

    thanks you brad

  • @yamikaniNyirenda-j1s
    @yamikaniNyirenda-j1s Год назад

    thanks alot man,,nice
    🤝🤝

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

    Very helpful. Thank you.

  • @MenAtWorkMedia22
    @MenAtWorkMedia22 7 лет назад +2

    Thank you!

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

    Super code!!! Thank you!!!

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

    @Traversy Media It's not working, i have copied exactly what you wrote and it doesnt work. When I preview and click on the arrow s, it doesnt work. Please help!

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

    can you please tell me how to make this slider work/change pictures automatically?

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

    Nice tutorial. I have tried this and it works. Can you tell how do make It Automatic Slideshow along with next, prev buttons and also bullet thumbnails.

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

    What is Jquery? i see it everywhere but do not understand what it is and why it is used

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

    Brad, can you touch the moment of using jQuery in Angular/TypeScript? Thanks.

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

    Thanks! About the images, I don't know if it's only me but the link (as well as the site as a whole) appears to be down.

  • @SunnyKumar-wc7gl
    @SunnyKumar-wc7gl 6 лет назад

    thank you, this worked

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

    Thanks for you tutorials Traversy Media ,they are very helpful ,just small request if you show us final result i mean the slider in this case and tell us what are the main part , in the slider where is container and why we put this or that we just copy what you write without understanding well,we just want to be like we are the designers ,thanks again for your help

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

    Can someone help me to loop the image, like autoplay ?

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

    great video man

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

    what is the best way to add a description to the images?

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

    How do you make it a fade-in/fade-out slideshow ? Kinda like the one on the Twitter mainpage when you login ?

    • @DamLee88
      @DamLee88 7 лет назад +1

      nice question

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

      jQuery has a fadeIn(), fadeOut() and fadeToggle() function. Check my jQuery crash course videos. You would set it up a bit different than this slider though

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

      did you try css' :hover ?

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

      Just use the powerful @keyframes query to add that sort of animation.

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

      give your first image a class of "is-first"
      give your last image a class of "is-last"
      in css, remove the inline-block style from your "active" class, and give it to your "is-first" class
      the rest is jquery
      $(document).ready(function(){
      $(".next").click(function(){
      var currentImg = $(".active");
      var nextImg = currentImg.next();
      if(nextImg.length){
      currentImg.removeClass("active").fadeOut(300).css("z-index", "-10");
      nextImg.addClass("active").delay(300).fadeIn(300).css("z-index", "10");
      }
      else{
      currentImg.removeClass("active").fadeOut(300).css("z-index", "-10");
      $(".is-first").addClass("active").delay(300).fadeIn(300).css("z-index", "10");
      }
      });
      $(".prev").click(function(){
      var currentImg = $(".active");
      var prevImg = currentImg.prev();
      if(prevImg.length){
      currentImg.removeClass("active").fadeOut(300).css("z-index", "-10");
      prevImg.addClass("active").delay(300).fadeIn(300).css("z-index", "10");
      }else{
      currentImg.removeClass("active").fadeOut(300).css("z-index", "-10");
      $(".is-last").addClass("active").delay(300).fadeIn(300).css("z-index", "10");
      }
      });
      });

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

    Hey! Thanks very much for this video. Is it possible to add a voting system to the images? Like per example, from 1 to 10 where people can tell which one they prefer and that then it shows the average points the images have?

  • @mohamadhelaly4979
    @mohamadhelaly4979 7 лет назад +1

    thanx alot
    your great

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

    its 100% working dude, but i want it with some animation so i add transition property in jquery like this nextimg.addClass('active').css({"z-index": "10","transition": ".8s ease" });
    } but still it works like same as before which means no animation so plss tell me solution fast.

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

    my images doesn't move. why?
    but after the consol.log('clicked') it worksssssss
    :-(

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

    Thanks man!

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

    thank you!!!!!!!!!!!!!!!!!!

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

    I downloaded your files and when I bring it up onto my browser, nothing happens, is everything outdated or? I tried everything out myself, but the only thing that's not working is clicking left or right still.
    Yes, every code is correct according to this video (checked 10 times).

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

    how to make it auto play cant find any thing

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

    how to download code for this videos?

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

    How do you make a slide-in animation?

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

    Thanks 🔥

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

    perfect

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

    I don't know why, but it didn't work for me. My images don't show up for some reason.

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

    Thank you, so so much ;)

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

    Mine is not working

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

    What are your thoughts of using velocity.js vs jQuery?

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

      I actually have never used Velocity. Well not enough to compare

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

    Thaaaanks a looot !!!

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

    I managed to make it go in circles. Like it's infinite.

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

      Can you share your code? I'm trying to do the same.

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

    Thanks .

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

    Used your code and it didnt work in sublime text

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

    Did you delete your Linkedin?

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

    links dont work.

  • @the-mojojojo
    @the-mojojojo 5 лет назад

    Hope that you'll learn the difference b/w a slider and a slideshow.

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

    anybody has the solution or it to cycles again? lol

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

    Sirr can you create a tutorial on how to integrate node.js in php script?

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

    This Web Development thins has me burned out brad. how do you do this.

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

    currentImg.siblings().last().addClass('active').css('z-index', 99);
    for looping :)

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

    Skills

  • @Bianca-zd5jn
    @Bianca-zd5jn 4 года назад

    It doesn't work. I tried to integrate it into a project and doesn't work

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

    Thanks! Very helpful.

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

    Thank You!