Animate Element Attributes

This introduces the GreenSock method TweenLite.to(myElement, duration, {attr:{attribute:value}}) which can animate essentially all attributes.
A rectangle is drawn. GreenSock can animate an svg element's attributes.

Animate Attributes
x, y
width, height
fill
rx, ry
opacity

Note: An animation's results remain attached to an element. Therefore each selection removes/replaces the rect.
(A one second delay is applied to each animation selection request)


SVG Source:
Javascript: