Fix for navbar animation on safari