loading...

Slider use as banner

Category: jQuery

Sometimes we need to show single image as banner when implemented slider. In this case we need to control slider navigation or other things. Here I show an example when single image place it’ll show as banner and more then one image it’ll show as slider.

  $(function() {
    var x = $('.swiper-slide').length;
    if(x == 1) {
      $('.sbtn').hide();
    }
  });

Leave a Reply

Your email address will not be published.