Skip to main content

transitions

import {...} from "@revideo/core/lib/transitions";

Transitions between scenes.

Functions

fadeTransition

public fadeTransitionduration: number = 0.6: ThreadGenerator

Perform a transition that fades between the scenes.

Parameters

  • duration: number = 0.6

    The duration of the transition.


slideTransition

public slideTransitiondirection: Directionduration?: number: ThreadGenerator
public slideTransitionorigin: Originduration?: number: ThreadGenerator

Perform a transition that slides the scene in the given direction.

Parameters


useTransition

public useTransitioncurrent: ctx: CanvasRenderingContext2D => voidprevious?: ctx: CanvasRenderingContext2D => voidpreviousOnTop?: SignalValueboolean: () => void

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

Parameters


zoomInTransition

public zoomInTransitionarea: BBoxduration: number = 0.6: ThreadGenerator

Perform a transition that zooms in on a given area of the scene.

Parameters

  • area: BBox

    The area on which to zoom in.

  • duration: number = 0.6

    The duration of the transition.


zoomOutTransition

public zoomOutTransitionarea: BBoxduration: number = 0.6: ThreadGenerator

Perform a transition that zooms out from a given area of the scene.

Parameters

  • area: BBox

    The area from which to zoom out.

  • duration: number = 0.6

    The duration of the transition.