DocumentTimeline
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 DocumentTimeline của Web Animations API đại diện cho các timeline hoạt ảnh, bao gồm timeline tài liệu mặc định (được truy cập qua Document.timeline).
Hàm khởi tạo
DocumentTimeline()-
Tạo đối tượng
DocumentTimelinemới liên kết với tài liệu đang hoạt động của ngữ cảnh duyệt web hiện tại.
Thuộc tính phiên bản
Giao diện này kế thừa thuộc tính từ lớp cha, AnimationTimeline.
AnimationTimeline.currentTime-
Trả về giá trị thời gian tính bằng mili giây cho timeline này hoặc
nullnếu nó không hoạt động.
Thông số kỹ thuật
| Specification |
|---|
| Web Animations> # the-documenttimeline-interface> |