SVGAnimationElement: beginElementAt()-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 beginElementAt() des SVGAnimationElement erzeugt eine Anfangsinstanzzeit für die aktuelle Zeit plus dem angegebenen Offset. Die neue Instanzzeit wird zur Liste der Anfangsinstanzzeiten hinzugefügt.

Syntax

js
beginElementAt(offset)

Parameter

offset

Ein Gleitkommawert, der den Offset in Sekunden von der aktuellen Dokumentzeit darstellt, zu dem das Element beginnen soll.

Rückgabewert

Keiner

Beispiele

Dieses Beispiel zeigt, wie beginElementAt() verwendet wird, um ein Animations-Element nach einer Verzögerung von 2 Sekunden zu starten:

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

Spezifikationen

Specification
SVG Animations Level 2
# __svg__SVGAnimationElement__beginElementAt

Browser-Kompatibilität

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
beginElementAt

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support