adjust animation for webkit