added ability to set the animation to be percentage of the whole