Skip to Content

@revideo/core


@revideo/core / transitions / useTransition

Function: useTransition()

useTransition(current, previous?, previousOnTop?): () => void

Defined in: transitions/useTransition.ts:11 

Transition to the current scene by altering the Context2D before scenes are rendered.

Parameters

current

(ctx) => void

The callback to use before the current scene is rendered.

previous?

(ctx) => void

The callback to use before the previous scene is rendered.

previousOnTop?

SignalValue<boolean>

Whether the previous scene should be rendered on top.

Returns

() => void

© 2026 Haven Technologies, Inc.
Function: useTransition() – Revideo