ASAIK jquery animate function accepts style properties only. but i want to animate the attributes of an element. consider a SVG element rectangle
I would try something like this
in the script :
var myElemX = $('.myElement').attr('x'); var myElemY = $('.myElement').attr('y'); $("#rect1").animate({ left: myElemX+'px', top: myElemY+'px' }, 1500 );