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

前端 未结 2 660
名媛妹妹
名媛妹妹 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
    0 讨论(0)
  • 2021-02-05 18:05

    You have to specify a delay on the z-index transition:

    -webkit-transition-property: top, bottom, z-index;
    -webkit-transition-duration: 0.5s;
    -webkit-transition-delay: 0s, 0s, .5s;
    
    0 讨论(0)
提交回复
热议问题