how to listen to the end of a bootstrap animation

后端 未结 4 1088
暗喜
暗喜 2020-12-18 05:21

I\'m developing a website using bootstrap and its responsive JS+CSS.

At the top of the page I have a fixed navigation bar where an \"expand menu\" button is shown in

4条回答
  •  悲&欢浪女
    2020-12-18 05:50

    $('.collapse').on('bsTransitionEnd', function(e) {
      console.log('finished')
    })
    

    This worked for me for collapsible panels of any kind. You might try with a different selector.

提交回复
热议问题