Strata - v1.4.10
    Preparing search index...

    Interface TransitionConfig

    Configuration for a transition effect.

    interface TransitionConfig {
        center?: [number, number];
        color?: string;
        direction?: "left" | "right" | "up" | "down";
        duration: number;
        easing?: (t: number) => number;
        reverse?: boolean;
        type: TransitionType;
    }
    Index

    Properties

    center?: [number, number]

    For 'iris', the screen-space center point [0-1].

    color?: string

    For 'fade', the background color.

    direction?: "left" | "right" | "up" | "down"

    For 'wipe', the direction of the movement.

    duration: number

    Duration of the transition in seconds.

    easing?: (t: number) => number

    Optional easing function (defaults to linear).

    reverse?: boolean

    Whether the transition is reversed (e.g. fade in vs fade out).

    The type of visual effect to use.