It seems like I may not be using the callback feature correctly because when I run the code below, the "testCircle" doesn't animate before it disappears.
var paper = Raphael(0, 0, 1280,600);
var testCircle = paper.circle(300, 300, 50);
testCircle.animate({
cx: 700
}, 1000, testCircle.remove())
I need the animation to complete before the circle is removed. Is there an issue with how I'm using this function?