SVGAnimationElement: endElementAt()-Methode
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since January 2020.
Die Methode endElementAt()
des SVGAnimationElement
erstellt einen Endzeitpunkt für die aktuelle Zeit plus den angegebenen Offset. Die neue Instanzzeit wird der Liste der Endinstanzzeiten hinzugefügt.
Syntax
endElementAt(offset)
Parameter
offset
-
Ein Float, der den Offset von der aktuellen Dokumentzeit in Sekunden darstellt, zu dem das Element beendet werden soll.
Rückgabewert
Keiner
Beispiele
Dieses Beispiel zeigt, wie endElementAt()
verwendet wird, um ein Animationselement nach einer Verzögerung von 2 Sekunden zu beenden:
const animationElement = document.querySelector("animate");
animationElement.endElementAt(2);
console.log("Animation will end after a 2-second delay.");
Spezifikationen
Specification |
---|
SVG Animations Level 2 # __svg__SVGAnimationElement__endElementAt |
Browser-Kompatibilität
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
endElementAt |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support