GlobalEventHandler.onanimationend

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since March 2020.

Обработчик события animationend. Это событие вызывается когда CSS-анимация достигает конца своего активного периода, который вычисляется как (animation-duration * animation-iteration-count) + animation-delay.

Синтаксис

var animEndHandler = target.onanimationend;

target.onanimationend = Function

Значение

A Function вызывается, когда происходит событие animationend, указывающее, что анимация CSS начинается с цели, где целевой объект является HTML-элементом (HTMLElement), документ (Document) или окно (Window). Функция получает в качестве входного параметра один параметр: AnimationEvent объект, описывающий событие, которое произошло.

Спецификации

Specification
CSS Animations Level 1
# eventdef-globaleventhandlers-animationend

Совместимость с браузерами

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
animationend event

Legend

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

Full support
Full support
Partial support
Partial support
Requires a vendor prefix or different name for use.
Has more compatibility info.

Смотрите также