ASAIK jquery animate function accepts style properties only. but i want to animate the attributes of an element. consider a SVG element rectangle
<svg>
<rect id="rect1" x=10 y=20 width="100px" height="100px">
</svg>
i want to animate the rectangle element attribute "x" and "y" something like below
$("#rect1").animate({
x: 30,
y: 40
}, 1500 );
but it is not correct way because animate function affects style not attribute of an element.
i knew so many custom plugin is there like raphel.js.
but i don't want to use custom plugin to do this. i want to do this simply in jquery.animate function.
is this possible ?
Thanks,
Siva