SVGAnimationElement: endElementAt() method - Web APIs | MDN

Syntax

Parameters

offset

A float representing the offset from the current document time, in seconds, at which to end the element.

Return value

None

Examples

This example demonstrates how to use endElementAt() to end an animation element after a delay of 2 seconds:

js

const animationElement = document.querySelector("animate");
animationElement.endElementAt(2);
console.log("Animation will end after a 2-second delay.");

Specifications

Specification
SVG Animations Level 2
# __svg__SVGAnimationElement__endElementAt

Browser compatibility

Help improve MDN

Learn how to contribute

This page was last modified on by MDN contributors.