# `<key>`

[Canonical page](https://nothing.graphics/docs/format/reference/key) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/reference/key.md)

Assign a typed value at an exact composition instant.



<!-- Generated by ncf/tools/reference/generate.mjs. -->

A key owns a typed value and one address. Editing the frame rate moves frame-addressed keys in seconds and leaves exact-time keys at their authored instants.

## Syntax [#syntax]

### Set the outgoing ease for a turn [#set-the-outgoing-ease-for-a-turn]

The first rotation key starts at zero degrees. Linear ease reaches 45° halfway to the 90° key at frame 4.

```xml
<key frame="0" value="0" ease="linear"/>
```

[Complete .nothing source](https://github.com/gridaco/nothing/blob/main/ncf/conformance/boxed-geometry/centered-rectangle.nothing) · [Sample checks](https://github.com/gridaco/nothing/blob/main/ncf/conformance/boxed-geometry/README.md#a-centered-rectangle-rotates-and-widens)

## Usage context [#usage-context]

Allowed parents are [`<animate>`](https://nothing.graphics/docs/format/reference/animate).

Supply exactly one of frame and time. Each nonfinal key specifies outgoing ease. The final key carries only address and value.

## Attributes [#attributes]

[Property animation](https://nothing.graphics/docs/format/spec/animation#property-types-and-exceptions)

### `frame` [#frame]

**Value** `Integer frame index` · **Keys** Static

Frame number on the owning composition's clock, whose zero is the first frame.

### `time` [#time]

**Value** `Exact integer, decimal, or integer fraction with positive denominator and s suffix` · **Keys** Static

Exact address in seconds, such as 1/24s or 0.5s.

### `value` [#value]

**Value** `Target property's grammar, units and range` · **Required** · **Keys** Static

Value at the addressed instant.

### `ease` [#ease]

**Value** `hold`, `linear`, `spline` · **Keys** Static

Required on each nonfinal key. Hold keeps the left value, linear uses the raw interval fraction, and spline uses a cubic Bézier for that fraction. [Evaluating animation tracks](https://nothing.graphics/docs/format/spec/animation#evaluation)

### `keySplines` [#keysplines]

**Value** `Four space-separated Bézier coordinates x1 y1 x2 y2, each in [0, 1]` · **Keys** Static

Required with spline ease and used only for that outgoing segment. [Evaluating animation tracks](https://nothing.graphics/docs/format/spec/animation#evaluation)

## Specifications [#specifications]

* [Frame and exact-time addresses](https://nothing.graphics/docs/format/spec/animation#key-addresses)
* [Evaluating animation tracks](https://nothing.graphics/docs/format/spec/animation#evaluation)
