Is it possible to prevent the Bootstrap carousel pause on mouse hover and continue automatically cycling?

Andy Bowskill picture Andy Bowskill · Apr 22, 2012 · Viewed 68.3k times · Source

Is it possible to prevent the Bootstrap carousel pause on mouse hover behaviour and continue automatically cycling through the items instead?

The documentation only mentions the default behaviour of pause: "hover", if I change the pause argument to anything else then the carousel stops working altogether so I'm not sure how to disable this default behaviour.

Answer

xcer picture xcer · May 4, 2012

I've found that a value of "false" will cause the carousel to keep cycling during a mouseover:

$('.carousel').carousel({
    pause: "false"
});

I am using Twitter Bootstrap v2.0.2