| `nextWhenVisible` | Only go to the next slide when the page, carousel and the carousel parent is visible. |
| `to` | Cycles the carousel to a particular frame (0 based, similar to an array). **Returns to the caller before the target item has been shown** (i.e. before the `slid.bs.carousel` event occurs). |
| `dispose` | Destroys an element's carousel. |
+| `_getInstance` | *Static* method which allows you to get the carousel instance associated with a DOM element |
### Events
</table>
{{< highlight js >}}
-$('#myCarousel').on('slide.bs.carousel', function () {
+var myCarousel = document.getElementById('myCarousel')
+
+myCarousel.addEventListener('slide.bs.carousel', function () {
// do something...
})
{{< /highlight >}}