The SVGAnimationElement method endElement() creates an end instance time for the current time.
endElement()
MDN Reference