Use a curve when driving the animation.