animation fixes on safari