AnimationPlaybackEvent

Baseline Widely available

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

Giao diện AnimationPlaybackEvent của Web Animations API biểu diễn các sự kiện hoạt ảnh.

Khi hoạt ảnh chạy, chúng báo cáo những thay đổi của playState thông qua các sự kiện hoạt ảnh.

Event AnimationPlaybackEvent

Bộ khởi tạo

AnimationPlaybackEvent()

Tạo một thể hiện đối tượng AnimationPlaybackEvent mới.

Thuộc tính thể hiện

AnimationPlaybackEvent.currentTime Read only

Thời gian hiện tại của hoạt ảnh đã tạo ra sự kiện.

AnimationPlaybackEvent.timelineTime Read only

Giá trị thời gian của timeline của hoạt ảnh đã tạo ra sự kiện.

Thông số kỹ thuật

Specification
Web Animations
# the-animationplaybackevent-interface

Tương thích trình duyệt

Xem thêm