Animating a spring pendulum

Check out this tutorial as well