attribute has different meanings, depending upon the context where it's used, either it defines a sequence of values used over the course of an animation, or it's a list of numbers for a color matrix, which is interpreted differently depending on the type of color change to be performed.

You can use this attribute with the following SVG elements:

animate, animateColor, animateMotion, animateTransform

For <animate> , <animateColor> , <animateMotion> ,和 <animateTransform> , is a list of values defining the sequence of values over the course of the animation. If this attribute is specified, any from , to ,和 by attribute values set on the element are ignored.

<list-of-values>
默认值 None
Animatable No
<list-of-values>

The value holds a semicolon-separated list of one or more values. The type of the values is defined by the href and attributeName 属性。

feColorMatrix

对于 <feColorMatrix> element, is a list of numbers interpreted differently depending on the value of the type 属性。

<list-of-numbers>
默认值 type="matrix" , identity matrix,
if type="saturate" , 1 , resulting in identity matrix,
if type="hueRotate" , 0 , resulting in identity matrix
Animatable Yes
<list-of-numbers>

The value is a list of numbers, which is interpreted differently depending on the value of the type 属性:

  • For type="matrix" , is a list of 20 matrix values (a00 a01 a02 a03 a04 a10 a11 ... a34), separated by whitespace and/or a comma.
  • For type="saturate" , is a single real number value (0 to 1).
  • For type="hueRotate" , is a single one real number value (degrees).
  • For type="luminanceToAlpha" , is not applicable.

规范

规范 状态 注释
Filter Effects Module Level 1
The definition of 'values for <feColorMatrix>' in that specification.
工作草案 无变化
SVG Animations Level 2
The definition of 'values for <animate>, <animateColor>, <animateMotion>, and <animateTransform>' in that specification.
编者草案 无变化
Scalable Vector Graphics (SVG) 1.1 (Second Edition)
The definition of 'values for <feColorMatrix>' in that specification.
推荐 Initial definition for <feColorMatrix>
Scalable Vector Graphics (SVG) 1.1 (Second Edition)
The definition of 'values for <animate>, <animateColor>, <animateMotion>, and <animateTransform>' in that specification.
推荐 Initial definition for <animate> , <animateColor> , <animateMotion> ,和 <animateTransform>

Found a problem with this page?

最后修改: , 由 MDN 贡献者