animate the line for webkit