How to change the interval time on bootstrap carousel?

前端 未结 5 2228
情书的邮戳
情书的邮戳 2020-12-09 08:08

I have a bootstrap carousel on my web page, I\'m trying the increase the time interval between each slide. The default delay of 5000 milliseconds is too fast, I need about 1

5条回答
  •  悲哀的现实
    2020-12-09 08:39

    The best way to get rid on it is adding or modifying the data-interval attribute like this:

    It's specified on ms like it's usually on js, so 1000 = 1s, 3000 = 3s... 10000 = 10s.

    By the way you can also specify it at 0 for not sliding automatically. It's useful when showing product images on mobile for example.

提交回复
热议问题