added constant

added constant to define the animation duration, currently set to .5f;