Set the state to the target value by starting an animation.
The new value to animate to.
The animation that will be used to animate to the new value.