Keyframes
Keyframes set a layer's position, scale, rotation, opacity or dash offset at chosen moments in a scene.
- Where
- Written by a connected agent; shown as a Custom build
A keyframe sets one property to a value at one moment, and as the scene plays, the property moves from each keyframe to the next. Keyframes cover motion that no build type does, such as a shape that drifts for the whole length of a scene.
The editor has no controls for individual keyframes. They are written by an agent connected to the deck, or arrive in an imported deck file. The editor plays them, shows them as a Custom build, and lets you retime them as a whole. To change a single keyframe, ask the agent. See Working with agents.
Custom builds
An agent makes a Custom build by converting a build into keyframes. Grow and Glitch can’t be converted. In the editor, a Custom build is one block labeled Custom in the layer’s timeline row, and a build in the inspector whose Type reads Custom. Custom isn’t in the add menu, and its settings have no stagger controls.
Stretches or squeezes the keyframes to fit the new length. It’s the same as dragging an edge of the block.
Moves all the keyframes together. It’s the same as dragging the block.
When you select a Custom build together with other builds, it takes the shared Duration and Delay, and ignores Type, options and Easing.
Remove build, or choosing another Type, deletes the block, the build’s settings and its keyframes, and undoes in one step. Keyframes on other properties, or outside the time the build covers, stay on the layer.
Properties
| Property | Unit | Value with no keyframes |
|---|---|---|
| X | px | The layer’s X position |
| Y | px | The layer’s Y position |
| Scale | Multiplier | 1 |
| Rotation | Degrees | The layer’s rotation |
| Opacity | 0 to 1 | The layer’s opacity |
| Dash offset | Percent | The stroke’s dash offset. Shapes and vector layers only |
- Times are in milliseconds from the start of the scene, counted from when the transition in has finished. On a layer you’ve placed by hand in the timeline, they count from the start of the transition.
- Before the first keyframe, the property holds its value. After the last keyframe, it holds the last value.
- Each keyframe can carry an ease, which shapes the motion from that keyframe to the next. See Easing.
- A keyframed property replaces the layer’s own value while the scene plays.
Keyframes without a build
Keyframes that don’t belong to a build give the layer a timeline row, but no block. They play at their saved times, and you can’t retime them. A scene whose only motion comes from such keyframes has an automatic duration of 4 seconds. For another length, type a Duration in the timeline’s header.
Combining with other features
- Builds and actions apply on top of keyframes. A Slide shifts the keyframed position, and a Fade or a Scale action multiplies the keyframed value.
- Cloners and charts. Keyframes on a layer inside a cloner, or on a chart’s parts, are ignored. On the cloner or chart itself, they move the whole object.
- Global Layer. Keyframes on its layers don’t play.
Limits
- Keyframes cover only the six properties above. They can’t change color, size, corner radius, text or effects.
- Stagger doesn’t apply, because keyframes move the whole layer.