<animate>
Key one property on the enclosing XML element.
Examples
Download the complete .nothing source · Source on GitHub
Rendered with ncf-preview at 128 × 96.




<shape translate-x="16" translate-y="16">
<polyline points="0,0 60,0 60,40"/>
<stroke stroke-width="12">
<paint><solid color="#2C313CFF"/></paint>
</stroke>
<stroke stroke-width="6">
<trim start="0" end="0">
<animate attributeName="end" fill="freeze">
<key frame="0" value="0" ease="linear"/>
<key frame="24" value="1"/>
</animate>
</trim>
<paint><solid color="#F4F4F5FF"/></paint>
</stroke>
<shape along="0" orient="auto">
<polygon points="-2,-6 8,0 -2,6"/>
<fill><paint><solid color="#FFC23DFF"/></paint></fill>
<animate attributeName="along" fill="freeze">
<key frame="0" value="0" ease="linear"/>
<key frame="24" value="1"/>
</animate>
</shape>
</shape>A property track is a direct child of the element that owns the value. Tracks add no paint or mixing slot. Base evaluation uses the authored value or its defined default.
Syntax
Turn a shape and hold its final angle
Key rotation on the owning shape. The turn reaches 45° at frame 2 and 90° at frame 4. Freeze retains the final angle while the rectangle’s separate width track runs through frame 8.
<animate attributeName="rotate" fill="freeze">
<key frame="0" value="0" ease="linear"/>
<key frame="4" value="90"/>
</animate>Complete .nothing source · Sample checks
Usage context
Use directly under a keyable property owner. The selected property must support keys in that context. Level 1 owners are <shape>, <rect>, <group>, <scene>, <camera>, <circle>, <ellipse>, <line>, <polyline>, <polygon>, <path>, <boolean>, <stroke>, <trim>, <paint>, <solid>, <image>, <gradient>, <stop>, <mask>, <blur>, <drop-shadow>, <inner-shadow>, <box-shadow>, <text>, <span>, <sequence>.
The spatial trial also allows <plane> as a property owner.
The selected property needs a valid base. Some bases are mandatory even when the property can be omitted without a track. At a sample, the latest contributing first-key time wins, with ties resolved by later declaration order.
Attributes
attributeName
Value Case-sensitive keyable property name on the enclosing owner · Required · Keys Static
Select the XML attribute or an animation-only target such as the literal copy value on leaf text.
fill
Value remove, freeze · If omitted remove · Keys Static
Remove releases the property when the final iteration finishes. Freeze retains the last value. Evaluating animation tracks
repeatCount
Value Positive integer · If omitted 1 · Keys Static
Number of iterations. An interior repeat boundary uses the first key again. Evaluating animation tracks
Children
| Elements | Cardinality | Declared by | Role and source order |
|---|---|---|---|
<key> | Two or more | <animate> | The first key starts the track and the last defines the iteration endpoint. Strictly increasing resolved instants. Equal times are invalid even with different address forms. Frame and exact-time addresses |