Fix for CSS animations