-webkit-animation

Non-standard: This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.

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: All browsers support the animation property without vendor prefixes. Only WebKit (Safari), and not Chromium, based browsers supports the -webkit-animation media feature. No browsers support animation, without the prefix, as a media query. Use the @supports (animation) feature query instead.

The -webkit-animation Boolean CSS media feature is a WebKit extension whose value is true if vendor-prefixed CSS animations are supported.

Apple has a description in Safari CSS Reference.

Note: This media feature is only supported by WebKit. If possible, use an @supports feature query instead.

Syntax

The -webkit-animation media feature is a Boolean whose value is true if the vendor-prefixed CSS animation properties are supported and the browser supports prefixed property media queries.

Values

true

The browser supports -webkit prefixed CSS animation.

false

The browser doesn't support these prefixed CSS animations.

Examples

Example of -webkit-animation

css
@media (-webkit-animation) {
  /* CSS to use if -webkit- prefixed animations are supported AND the browser supports prefixed properties as media queries */
}

Specifications

Not part of any standard.

Browser compatibility

BCD tables only load in the browser

See also