Twitter Bootstrap Carousel autoplay on load

前端 未结 10 1016
天命终不由人
天命终不由人 2021-02-07 03:15

Using the twitter bootstrap framework, how is it possible to invoke the carousel to \'auto slide.\' Meaning when the page loads, the carousel automatically scrolls.

I ha

10条回答
  •  攒了一身酷
    2021-02-07 03:55

    Put it in the document-ready-block make it auto-start for me

    $(document).ready(function() {
    $('#myCarousel').carousel();
    });
    

提交回复
热议问题