docs.rodeo

MDN Web Docs mirror

Animatable CSS properties

{{CSSRef}} 

CSS Animations and Transitions rely on the concept of animatable properties, and all CSS properties are animatable unless otherwise specified. Each property’s animation type determines how values combine - interpolate, add, or accumulate - for this property. Transitions only involve interpolation, whereas animations may use all three combination methods.

[!NOTE] The animation type for each CSS property is listed in its “Formal definition” table (E.g., {{CSSXref("color", "", "#formal_definition")}} ).

[!NOTE] The interpolation method for each CSS data type is described in its “Interpolation” section (E.g., {{CSSXref("<length>", "", "#interpolation")}} ).

Animation types

There are mainly four animation types as defined in the Web Animations specification:

Some properties have specific interpolation behavior not covered by these four types. In this case, refer to the property’s “Interpolation” section (E.g., {{CSSXref("visibility", "", "#interpolation")}} ).

Animating custom properties

For custom properties registered using the {{DOMXref("CSS/registerProperty_static", "registerProperty()")}}  method, the animation type is by computed value, with the computed value type determined by the property’s syntax definition.

For unregistered custom properties, the animation type is discrete.

See also

In this article

View on MDN