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