How can I make the boostrap js carousel automatically cycle as soon as the page loads?

Posted by Jonathan Larkin on Stack Overflow See other posts from Stack Overflow or by Jonathan Larkin
Published on 2012-03-17T14:36:19Z Indexed on 2012/11/03 5:02 UTC
Read the original article Hit count: 198

Using bootstrap.js version 2.02

I'm trying to get the Twitter Bootstrap Carousel to automatically cycle as soon as someone visits my site. Right now, the auto cycling works only after you click one of the cycle buttons at least once.

I want the carousel to begin cycling at the interval right away.

Does anyone know how to do this?

My site is hotairraccoon.com

You'll see how after you click the carousel once, it begins to cycle every 5 seconds or so, but I don't want the click to be required to reveal carousel content.

Thanks!

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about twitter-bootstrap