Bootstrap carousel slider left to right slides direction

jQuery file


jQuery( document ).ready(function() {
jQuery('#myCarousel').carousel({
interval: false
});
setInterval(function(){jQuery('#myCarousel').carousel('prev'); }, 3000);
});

Display


<div id="myCarousel" class="carousel slide" data-ride="carousel">
<div class="carousel-inner">
<div class="item active" >
<img src="<?=$base_URL?>images/Vehicle_wraps2/slide-1.png" alt="">
</div>
<div class="item" >
<img src="<?=$base_URL?>images/Vehicle_wraps2/slide-2.png" alt="">
</div>

</div>
<!-- Carousel nav -->

</div>

Advertisements

Tagged:

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: