animation duration is now in milliseconds