Skip to content

flash

flash(opts?): SceneTransition

Defined in: renderer/src/transitions/flash.ts:24

Flash a solid color that decays from full opacity to zero over the duration. The overlay is fully opaque at begin, so the scene swap happens invisibly under the flash:

  • push/replace: no visibility juggling — the incoming scene is already mounted on top of the outgoing one in the stage order, so as the overlay decays only the incoming scene shows through.
  • pop: outgoing (top) scene is hidden from begin. Overlay masks the hide, and the destination beneath shows through as the flash tapers.

FlashOptions = {}

SceneTransition