且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在应用下一个类之前等待css转换完成

更新时间:2022-06-03 06:07:01

每个浏览器都有自己的事件,检测转换结束,只是这样绑定:

Each browser has its own event that you can use to detect transition end, just bind like this :

$(".yourClass").on('transitionend webkitTransitionEnd oTransitionEnd otransitionend MSTransitionEnd', 
    function() {
         //doSomething
    });