const animationElement = document.querySelector("animate");
animationElement.endElement();
console.log("Animation has ended.");SVGAnimationElement: endElement() method / notebook
SVGAnimationElement: endElement() method
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.