# `<sequence>`

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

Place referenced media or inline artwork on a parent timeline.

## Examples

[Download the complete .nothing source](https://nothing.graphics/format/moving-card/source.nothing) · [Source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/examples/composition-card.nothing)

Rendered with ncf-preview at 320 × 200.

Bound resources

- [fixtures/fonts/PT_Serif/PTSerif-Bold.ttf](https://github.com/gridaco/fixtures/blob/main/fonts/PT_Serif/PTSerif-Bold.ttf) for `PT Serif@700`
- [fixtures/fonts/PT_Serif/PTSerif-Regular.ttf](https://github.com/gridaco/fixtures/blob/main/fonts/PT_Serif/PTSerif-Regular.ttf) for `PT Serif@400`
- [ncf/examples/card-picture.nothing](https://nothing.graphics/format/moving-card/card-picture.nothing)

- [Frame 12 · Distinct in-points](https://nothing.graphics/format/moving-card/12.webp). Two masked windows show different times of the same picture. A progress line is halfway revealed beneath the caption Status READY.
- [Frame 24 · Full progress stripe](https://nothing.graphics/format/moving-card/24.webp). The left and right panels show source frames 24 and 48. The word WAIT appears in green and the progress stripe reaches the bend’s upper tip.

```xml
      <sequence href="./card-picture.nothing" begin="0f" dur="72f" source-start="1s" translate-x="16" translate-y="16">
        <animate attributeName="translate-x" fill="freeze">
          <key frame="0" value="16" ease="linear"/>
          <key frame="24" value="4"/>
        </animate>
      </sequence>
```



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

A sequence places one source for a bounded interval and maps its local time independently. Placement tracks, mask and filter use the parent clock. Its contents use mapped source time.

## Syntax [#syntax]

### Slip a nested picture while preserving its parent cut [#slip-a-nested-picture-while-preserving-its-parent-cut]

At parent frame 24, the right placement is one second into the cut and samples its source at two seconds. Change the source start from 1s to 1.25s and the stripe advances from x = 272 to 278 without moving the cut.

```xml
<sequence href="./card-picture.nothing" begin="0f" dur="72f" source-start="1s" translate-x="16" translate-y="16">
  <animate attributeName="translate-x" fill="freeze">
    <key frame="0" value="16" ease="linear"/>
    <key frame="24" value="4"/>
  </animate>
</sequence>
```

[Complete .nothing source](https://github.com/gridaco/nothing/blob/main/ncf/examples/composition-card.nothing) · [Sample checks](https://github.com/gridaco/nothing/blob/main/ncf/conformance/composition-card.md)

## Usage context [#usage-context]

Allowed parents are [`<scene>`](https://nothing.graphics/docs/format/reference/scene), [`<group>`](https://nothing.graphics/docs/format/reference/group), [`<sequence>`](https://nothing.graphics/docs/format/reference/sequence), [`<shape>`](https://nothing.graphics/docs/format/reference/shape).

The [spatial trial](https://github.com/gridaco/nothing/blob/main/ncf/rfcs/spatial-cameras.md) also allows [`<plane>`](https://nothing.graphics/docs/format/reference/plane).

Inherits from [Drawable](https://nothing.graphics/docs/format/reference/drawable).

When href is present, omit inline drawables. A backdrop filter requires an explicit mask. Locator kinds are mutually exclusive, with u and v counting as a single kind. An exact second value uses an integer, decimal, or integer fraction with a positive denominator.

## Attributes [#attributes]

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

### `translate-x` [#translate-x]

**Value** parent units · **If omitted** `0` · **Keys** Scalar · **Declared by** [Transform](https://nothing.graphics/docs/format/reference/transform#translate-x)

Horizontal translation.

### `translate-y` [#translate-y]

**Value** parent units · **If omitted** `0` · **Keys** Scalar · **Declared by** [Transform](https://nothing.graphics/docs/format/reference/transform#translate-y)

Vertical translation.

### `pivot-x` [#pivot-x]

**Value** local units · **If omitted** `0` · **Keys** Scalar · **Declared by** [Transform](https://nothing.graphics/docs/format/reference/transform#pivot-x)

Horizontal coordinate of the transform pivot.

### `pivot-y` [#pivot-y]

**Value** local units · **If omitted** `0` · **Keys** Scalar · **Declared by** [Transform](https://nothing.graphics/docs/format/reference/transform#pivot-y)

Vertical coordinate of the transform pivot.

### `scale-x` [#scale-x]

**Value** factor · **If omitted** `1` · **Keys** Scalar · **Declared by** [Transform](https://nothing.graphics/docs/format/reference/transform#scale-x)

Local horizontal scale. Negative values reflect the axis.

### `scale-y` [#scale-y]

**Value** factor · **If omitted** `1` · **Keys** Scalar · **Declared by** [Transform](https://nothing.graphics/docs/format/reference/transform#scale-y)

Local vertical scale. Negative values reflect the axis.

### `skew-x` [#skew-x]

**Value** degrees · **If omitted** `0` · **Keys** Scalar · **Declared by** [Transform](https://nothing.graphics/docs/format/reference/transform#skew-x)

Horizontal shear angle, strictly between −90 and 90.

### `rotate` [#rotate]

**Value** degrees · **If omitted** `0` · **Keys** Scalar · **Declared by** [Transform](https://nothing.graphics/docs/format/reference/transform#rotate)

Rotation about the drawable pivot, clockwise in default scene coordinates.

### `u` [#u]

**Value** fraction of host width · **Keys** Scalar · **Declared by** [Locator](https://nothing.graphics/docs/format/reference/locator#u)

Horizontal share measured from the left of the host bounds. Values outside \[0, 1] select a point outside those bounds. A track requires an authored base. Omission leaves this axis at the parent origin.

### `v` [#v]

**Value** fraction of host height · **Keys** Scalar · **Declared by** [Locator](https://nothing.graphics/docs/format/reference/locator#v)

Vertical share measured from the top of the host bounds. Values outside \[0, 1] select a point outside those bounds. A track requires an authored base. Omission leaves this axis at the parent origin.

### `along` [#along]

**Value** fraction of contour length · **Keys** Scalar · **Declared by** [Locator](https://nothing.graphics/docs/format/reference/locator#along)

Share of the directed contour length. Open contours use \[0, 1]. Closed contours wrap across laps. A track requires an authored base.

### `vertex` [#vertex]

**Value** vertex index · **Keys** Scalar · **Declared by** [Locator](https://nothing.graphics/docs/format/reference/locator#vertex)

Zero-based vertex and fractional distance along its following segment. Open contours with n vertices admit \[0, n − 1]. Closed contours wrap every n vertices. A track requires an authored base.

### `orient` [#orient]

**Value** `none`, `auto` · **If omitted** `none` · **Keys** Held · **Declared by** [Locator](https://nothing.graphics/docs/format/reference/locator#orient)

Facing relative to the host contour. Auto facing requires along or vertex.

### `opacity` [#opacity]

**Value** fraction · **If omitted** `1` · **Keys** Scalar · **Declared by** [Blending](https://nothing.graphics/docs/format/reference/blending#opacity)

Opacity from 0 to 1, applied once to the completed visual result.

### `blend-mode` [#blend-mode]

**Value** `normal`, `multiply`, `screen` · **If omitted** `normal` · **Keys** Held · **Declared by** [Blending](https://nothing.graphics/docs/format/reference/blending#blend-mode)

Blend the assembled drawable into its enclosing paint scope.

### `begin` [#begin]

**Value** `Integer frames with f, or exact seconds with s` · **Required** · **Keys** Static

Start on the placement's parent clock. Resolve frame counts at the enclosing scene's authored rate.

### `dur` [#dur]

**Value** `Integer frames with f, or exact seconds with s` · **Required** · **Keys** Static

Positive duration on the parent clock. The sequence is inactive at its end boundary.

### `source-start` [#source-start]

**Value** `Exact seconds with s` · **Required** · **Keys** Static

Source instant at the placement's beginning. Seconds can be an integer, decimal, or integer fraction.

### `href` [#href]

**Value** `Asset reference relative to the declaring document` · **Keys** Static

Optional referenced audio, footage or scene. Omit for inline content.

### `gain` [#gain]

**Value** linear amplitude factor · **If omitted** `1` · **Keys** Scalar

Nonnegative per-channel gain before mixing into the parent. One leaves amplitude unchanged. [Audio sampling and mixing](https://nothing.graphics/docs/format/spec/sequences#audio-sampling-and-mixing)

## Children [#children]

| Elements                                                                                                                                                                                                      | Cardinality           | Declared by                                                                         | Role and source order                                                                                                                                                                                                |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------- | ----------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [`<shape>`](https://nothing.graphics/docs/format/reference/shape), [`<group>`](https://nothing.graphics/docs/format/reference/group), [`<sequence>`](https://nothing.graphics/docs/format/reference/sequence) | Zero or more          | `<sequence>`                                                                        | Inline source drawables, allowed only without href. Document paint order. Resolve these children on the mapped source clock.                                                                                         |
| [`<filter>`](https://nothing.graphics/docs/format/reference/filter)                                                                                                                                           | Optional, at most one | [Drawable effects](https://nothing.graphics/docs/format/reference/drawable-effects) | Source-image operations on the assembled drawable. Independent of its position among siblings.                                                                                                                       |
| [`<backdrop-filter>`](https://nothing.graphics/docs/format/reference/backdrop-filter)                                                                                                                         | Optional, at most one | [Drawable effects](https://nothing.graphics/docs/format/reference/drawable-effects) | Blur the accumulated picture at this drawable's paint position. Independent of its position among siblings. [Backdrop blur](https://nothing.graphics/docs/format/spec/filters#backdrop-blur)                         |
| [`<mask>`](https://nothing.graphics/docs/format/reference/mask)                                                                                                                                               | Optional, at most one | [Drawable effects](https://nothing.graphics/docs/format/reference/drawable-effects) | Coverage from one source shape. Independent of its position among siblings. [Mask sources](https://nothing.graphics/docs/format/spec/graphics#mask-on-a-shape)                                                       |
| [`<animate>`](https://nothing.graphics/docs/format/reference/animate)                                                                                                                                         | Zero or more          | Animation                                                                           | A track targets one keyable property on this owner. For equal first-key times, the later track in document order wins. [Evaluating animation tracks](https://nothing.graphics/docs/format/spec/animation#evaluation) |

## Specifications [#specifications]

* [Sequence placement and clock](https://nothing.graphics/docs/format/spec/sequences#sequence)
* [Local-to-parent transforms](https://nothing.graphics/docs/format/spec/spatial#local-to-parent)
* [Locators](https://nothing.graphics/docs/format/spec/attached-drawables#locators)
* [Compositing and coverage](https://nothing.graphics/docs/format/spec/spatial#compositing-and-coverage)
* [Audio sampling and mixing](https://nothing.graphics/docs/format/spec/sequences#audio-sampling-and-mixing)
* [Filters and shadows](https://nothing.graphics/docs/format/spec/filters)
* [Backdrop blur](https://nothing.graphics/docs/format/spec/filters#backdrop-blur)
* [Mask sources](https://nothing.graphics/docs/format/spec/graphics#mask-on-a-shape)
* [Evaluating animation tracks](https://nothing.graphics/docs/format/spec/animation#evaluation)
