CSS3, WebKit Transition Order? How to queue to the transitions?

前端 未结 2 662
名媛妹妹
名媛妹妹 2021-02-05 17:34

I have the following:

-webkit-transition-property: top, bottom, z-index;
-webkit-transition-duration: 0.5s;

Problem is I don\'t want the z-ind

2条回答
  •  粉色の甜心
    2021-02-05 17:47

    And for your info, in javascript, you can also listen on the webkitTransitionEnd event and modify the z-index when this event is fired.

    This event have two useful properties :

    • propertyName : the name of the property involved in the transistion
    • elapsedTime : time elapsed during the transistion

提交回复
热议问题