Webkit transitionEnd event grouping

前端 未结 5 1766
逝去的感伤
逝去的感伤 2021-01-07 07:08

I have a HTML element to which I have attached a webkitTransitionEnd event.

function transEnd(event) {
    alert( \"Finished transition!\" );

}

var node =         


        
5条回答
  •  北恋
    北恋 (楼主)
    2021-01-07 07:26

    If you prefer it in JQuery, try this out. Note there is an event param to store the event object and use within the corresponding function.

    $("#divId").bind('oTransitionEnd transitionEnd webkitTransitionEnd', event, function() { 
        alert(event.propertyName) 
    });
    

提交回复
热议问题