Fixes nav animation on iOS and Safari