fade
fade(
opts?):SceneTransition
Defined in: renderer/src/transitions/fade.ts:26
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().
Parameters
Section titled “Parameters”FadeOptions = {}
Returns
Section titled “Returns”SceneTransition