This page was translated from English by the community. Learn more and join the MDN Web Docs community.

View in English Always switch to English

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 ⁨декабрь 2019 г.⁩.

Обработчик события 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

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

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