-webkit-animation
Non-standard: This feature is not standardized. We do not recommend using non-standard features in production, as they have limited browser support, and may change or be removed. However, they can be a suitable alternative in specific cases where no standard option exists.
Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.
Note:
Tất cả các trình duyệt đều hỗ trợ thuộc tính animation mà không cần tiền tố vendor. Chỉ các trình duyệt dựa trên WebKit (Safari), không phải Chromium, hỗ trợ tính năng phương tiện -webkit-animation. Không có trình duyệt nào hỗ trợ animation, không có tiền tố, như một media query. Thay vào đó hãy sử dụng feature query @supports (animation).
Tính năng phương tiện -webkit-animation Boolean CSS media feature là một phần mở rộng WebKit có giá trị là true nếu animation CSS có tiền tố vendor được hỗ trợ.
Apple có mô tả trong Safari CSS Reference.
Note:
Tính năng phương tiện này chỉ được hỗ trợ bởi WebKit. Nếu có thể, hãy sử dụng feature query @supports thay thế.
Cú pháp
Tính năng phương tiện -webkit-animation là Boolean có giá trị là true nếu các thuộc tính hoạt ảnh CSS có tiền tố vendor được hỗ trợ và trình duyệt hỗ trợ các media query thuộc tính có tiền tố.
Các giá trị
Ví dụ
>Ví dụ về -webkit-animation
@media (-webkit-animation) {
/* CSS to use if -webkit- prefixed animations are supported AND the browser supports prefixed properties as media queries */
}
Thông số kỹ thuật
Không phải là một phần của bất kỳ tiêu chuẩn nào.