add callback for svgPath

add callback when animation completed