CSS3 transition event Listener with jQuery

前端 未结 4 1399
无人及你
无人及你 2020-12-09 18:48

I am implementing a CSS3 transition effect on a article element but the event listener transitionend works only in pure JavaScript, not with jQuery.

See exa

4条回答
  •  甜味超标
    2020-12-09 19:26

    If the first one really works (I doubt it because it should require a vendor prefix), then this should work too:

    $(this).parent().on('transitionend', function() {
        alert("1");
    });
    

提交回复
热议问题