Reusing getAnimationDuration() for animation duration