Here is some of the animtion code.