Improved SVG animation