Fields
managesTo
When false, the incoming (“to”) child renders normally through the
artboard draw loop and is passed as nil to draw; the script composites
only the outgoing (“from”) child (useful for “reveal” transitions where
the new content is already on-stage). Defaults to true (the script
composites both children). Read at the start of each transition, so it
may be set in init or changed.
Methods
init
changed
from is the outgoing child
(nil on the first show); to is the incoming child. direction is 1
when to is at a higher combined index than from, -1 when lower, and
0 when unknown (e.g. the first show). Reset your progress clock / seek
any input you drive here. Called again on interruption, where from is
the previously-incoming child.
advance
draw
child:draw(renderer) in renderer
state (save / modulateOpacity / transform / clipPath / restore) to
author crossfade, slide, wipe, scale, and custom effects. Either child
may be nil (see managesTo).