Updated animation to use zindex to ensure it is on top