javascript - Bootstrap Carousel slide is not smooth for "NEXT" but smooth for "PREVIOUS" -


i using bootstrap framework website helping with. on front page of website carousel. odd reason, carousel "slide" transition smooth when clicking on left arrow (previous); seems go weird when clicking right arrow (next) i've tried looking online in bootstrap files (css , js) cannot seem find anything. i've tried re-copying code bootstrap website carousels. not sure what's wrong.

url: www.acebac.org

help? :d

here jquery code:

   var $item = $('.carousel .item');     var $wheight = $(window).height();     $item.eq(0).addclass('active');     $item.height($wheight);     $item.addclass('full-screen');      $('.carousel img').each(function() {         var $src = $(this).attr('src');         var $color = $(this).attr('data-color');         $(this).parent().css({             'background-image' : 'url(' + $src + ')',             'background-color' : $color         });         $(this).remove();     });      $(window).on('resize', function (){         $wheight = $(window).height();         $item.height($wheight);     });      $('.carousel').carousel({         interval: 5000,         pause: "false"     }); 

html code:

      <div id="mycarousel" class="carousel slide" data-ride="carousel">           <!-- indicators -->           <ol class="carousel-indicators">               <li data-target="#mycarousel" data-slide-to="0" class="active">      </li>               <li data-target="#mycarousel" data-slide-to="1"></li>               <li data-target="#mycarousel" data-slide-to="2"></li>           </ol>            <!-- wrapper slides -->           <div class="carousel-inner" role="listbox">               <div class="item">                   <img src="img/bg.jpg" data-color="lightblue" alt="first image">                   <div class="carousel-caption">                       <h3>first image</h3>                   </div>               </div>               <div class="item">                   <img src="img/bg1.jpg" data-color="firebrick" alt="second image">                   <div class="carousel-caption">                       <h3>second image</h3>                   </div>               </div>               <div class="item">                   <img src="img/bg2.jpg" data-color="violet" alt="third image">                   <div class="carousel-caption">                       <h3>third image</h3>                   </div>               </div>           </div>            <!-- controls -->           <a class="left carousel-control" href="#mycarousel" role="button" data-slide="prev">               <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>               <span class="sr-only">previous</span>           </a>           <a class="right carousel-control" href="#mycarousel" role="button" data-slide="next">               <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>               <span class="sr-only">next</span>           </a>       </div> 

see demo:demo carousel bootstrap


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -

java - Digest auth with Spring Security using javaconfig -