Animation fix for webkit browsers