Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Composition transitions

Pack policy for same-slot expression swaps (not stage show/hide). Command transition* / swap_mode on char overrides when set.

"composition_transitions": {
  "default": { "kind": "fade", "duration": 0.2, "swap_mode": "auto" },
  "pairs": {
    "happy->angry": { "kind": "fade", "duration": 0.4, "swap_mode": "crossfade" }
  }
}

Usually you need

KeyEffect
defaultFallback { kind, duration, swap_mode }
pairs"from->to" overrides

All keys

KeyEffect
default{ kind, duration, swap_mode }
from / toMaps expression id → payload
pairs"a->b", wildcards a->*, *->b, *->*

Payload

FieldValues
kindinstant, fade, slide_up / down / left / right
durationseconds
swap_modeauto | in_only | crossfade | out_in | cross_slide

Resolve order: exact pair → from-wildcard → to-wildcard → *->* → from map → to map → default → instant.

auto: fade→crossfade; slide→in_only; else in_only.

Transitions · char · Pack root.