fix header animation on safari