JavascriptForAnimation
Using Javascript for animation is popular since it can be more straightforward than declarative animation. The simplest approaches just use a Javascript callback to adjust attribute values repeatedly over a period of time. More complex methods use libraries like jQuery or Prototype.js to work around cross-browser compatibility issues and make code more clear.