Why doesn't Progress Bar dynamically change unlike Text?

后端 未结 6 1702
無奈伤痛
無奈伤痛 2021-02-07 06:56

I\'m dynamically updating a few elements after a setTimeout() function. The jQuery function .text() seems to dynamically update with each change of ind

6条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-07 07:08

    It is due to the way bootstrap animates changes in progress bar state. If the timeout interval is smaller than the animation time it will queue the redraw.

    Try adding this to your progress bar's CSS:

    -webkit-transition: none;
    transition: none;
    

    Check my fiddle

提交回复
热议问题