Fixed Safari animation flickering