The fill
attribute has two meanings based on the context it's used.
By default, when animation elements end their effects are no longer applied to the presentation value for the target attributes. The fill
attribute can be used to maintain the value of an animation after the active duration of an animation element ends.
For shapes and text, the fill
attribute is a presentation attribute that define the color of the interior of the given graphical element. What is called the "interior" depends on the shape itself and the value of the fill-rule
attribute. As a presentation attribute, it also can be used as a property directly inside a CSS stylesheet
Categories | Animation timing attribute |
---|---|
Value | remove | freeze |
Animatable | No |
Normative document | SVG 1.1 (2nd Edition) |
Categories | Presentation attribute |
---|---|
Value | <paint> |
Animatable | Yes |
Normative document | SVG 1.1 (2nd Edition) |
The following elements can use the fill
attribute
© 2005–2017 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill