animate the duration of rotation