Skip to content Skip to sidebar Skip to footer

Bootstrap Carousel

I am using bootstrap to make a carousel. The problem however is that I cant seem to figure out how I can call a function every time the carousel makes a cycle (with that I mean the

Solution 1:

As found in the documentation for the Twitter Bootstrap Carousel plugin, the carousel fires two events that you can listen for, slide and slid. Try listening to one of these events, and then executing the code you need in the callback.

Example

$('body').on('slid', function (e) {
  //do stuff in here
});

Post a Comment for "Bootstrap Carousel"