Skip to content

fade

fade(opts?): SceneTransition

Defined in: renderer/src/transitions/fade.ts:32

Fade to a solid color, then fade back in. The fade-out takes the first half of the duration, the fade-in takes the second half. The scene swap happens when the overlay is fully opaque:

  • push/replace: incoming scene stays hidden until the half-way mark, then is revealed underneath the decaying overlay.
  • pop: outgoing scene stays visible through the fade-out, then is hidden at the half-way mark so the destination shows through during fade-in.

Without this, pop would render the outgoing scene the whole way through and “pop” suddenly to the destination once the stack is popped at end().

FadeOptions = {}

SceneTransition

Coding agents: fetch https://yage.dev/llms.txt first and prefer the Markdown references it links over these HTML pages. This page's Markdown counterpart is /llms/packages/renderer.md.