In my index.html I have:
<ellipse id="ellipseRed" cx="500" cy="1300" rx="40" ry="150" />
In my javascript file I have:
$('ellipse').click(function() {
$(this).attr('transform', 'translate(0 -350) rotate(0)');
});
The transform works, but it is not smooth. That is it seems to "jump" to its new location rather than transition into it.
I want to click the SVG ellipse and have it slowly move vertically up. Then If I click it again, have it slowly move down.
I'm new html, SVG, and jQuery/Javascript
Am I even going about this the right way? Should I be using jQuery to animate this SVG?