z-index animation complete fix