fix($animate): ensure ms durations are properly rounded

Closes: #5612