webani - v1.0.0
    Preparing search index...

    Options for configuring a WebaniPolygonAnimation.

    type WebaniPolygonAnimationOptions = {
        after: WebaniPolygon | null;
        backwards?: boolean;
        before: WebaniPolygon | null;
        duration?: number;
        interpolationFunction?: (
            before: number,
            after: number,
            t: number,
        ) => number;
    }
    Index

    Properties

    after: WebaniPolygon | null

    The polygon to animate to (the ending state).

    backwards?: boolean

    Whether the animation should play in reverse. Optional, default is false.

    before: WebaniPolygon | null

    The polygon to animate from (the starting state).

    duration?: number

    The duration of the animation in milliseconds. Optional, default is 1000ms.

    interpolationFunction?: (before: number, after: number, t: number) => number

    A custom interpolation function to animate between the before and after states. Optional, default is easeInOut.