stop safari from flickering during animations