CineCode
Reference

Transitions

Transition kinds between scenes — cut, crossfade, fade_color, wipe, and slide.

Transitions smooth the cut between scenes. Set a default in the manifest, or call s.transition(kind, duration, [r, g, b]) inside a scene. Scene transitions accept raw frames or helpers like ms(600).

codescene.toml
[transition]
kind = "crossfade"
frames = 18
inside a scene
s.transition("fade_color", ms(800), 0.03, 0.04, 0.08); // dark navy, channels 0..1

Kinds

KindAliasesDescription
cutInstant change, no blend.
crossfadedissolve, fadeBlend the outgoing and incoming scenes.
fade_colordip, fade_throughDip to a solid color, then up into the next scene.
wipe_leftNew scene wipes in from the right toward the left.
wipe_rightWipe in from the left toward the right.
wipe_upWipe in from the bottom upward.
wipe_downWipe in from the top downward.
slide_leftpush_leftNew scene pushes the old one to the left.
slide_rightpush_rightPushes to the right.
slide_uppush_upPushes upward.
slide_downpush_downPushes downward.

Parameters

ParameterDescription
kindOne of the kinds above.
framesDuration of the transition, as raw frames or ms(...) / sec(...).
r, g, bColor for fade_color, with channels in 0..1 (defaults to black).

Choosing a transition

  • crossfade is the safe documentary default.
  • fade_color marks a chapter break — dip to the project background.
  • slide_* implies spatial continuation (e.g. moving along a pipeline).
  • wipe_* is bolder; use sparingly.

In the example project, all 17 scenes are joined with an 18-frame crossfade, which is the same as ms(600) at 30 fps.

On this page