fixing animation for webkit