webani - v1.0.0
    Preparing search index...

    Options for configuring a WebaniInterpolatedAnimation between two WebaniTransformable objects.

    interface WebaniInterpolatedAnimationOptions<T extends WebaniTransformable> {
        after: T;
        backwards?: boolean;
        before: T;
        duration?: number;
        interpolationFunction?: (
            before: number,
            after: number,
            t: number,
        ) => number;
    }

    Type Parameters

    Index

    Properties

    after: T

    The final state of the object after animation.

    backwards?: boolean

    Flag indicating if the animation should run backwards. Default is false.

    before: T

    The initial state of the object before animation.

    duration?: number

    Duration of the animation in milliseconds. Default is 1000 ms.

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

    Custom interpolation function for animation. Default is ease-in-out.