Lamp chain

I am trying to develop a little lamp animation where the lamp chain drags and is attracted to mouse movement. I’m thinking that this will involve drag, mouse detection, and some sort of child / parent animation.

Anyone know of any tutorials for this?

Thanks!