Fix for animation flickering on mobile