VideoUltra API
    Preparing search index...

    Function keyedTransform

    • The transform at t (flicks from the item's start) into out (reused — no allocation): keyframed properties sampled, the rest from base. Opacity is kept in 0…1, scale above 0.

      Parameters

      • base: Readonly<Transform>
      • keyframes:
            | Readonly<
                {
                    opacity?: {
                        ease?: | "linear"
                        | "smooth"
                        | "ease-in"
                        | "ease-out"
                        | "snappy"
                        | "expo"
                        | "back"
                        | "anticipate"
                        | "bounce"
                        | "elastic"
                        | "ball"
                        | "slow-mo"
                        | "steps"
                        | [number, number, number, number];
                        t: number;
                        v: number;
                    }[];
                    rotation?: {
                        ease?: | "linear"
                        | "smooth"
                        | "ease-in"
                        | "ease-out"
                        | "snappy"
                        | "expo"
                        | "back"
                        | "anticipate"
                        | "bounce"
                        | "elastic"
                        | "ball"
                        | "slow-mo"
                        | "steps"
                        | [number, number, number, number];
                        t: number;
                        v: number;
                    }[];
                    scale?: {
                        ease?: | "linear"
                        | "smooth"
                        | "ease-in"
                        | "ease-out"
                        | "snappy"
                        | "expo"
                        | "back"
                        | "anticipate"
                        | "bounce"
                        | "elastic"
                        | "ball"
                        | "slow-mo"
                        | "steps"
                        | [number, number, number, number];
                        t: number;
                        v: number;
                    }[];
                    shift?: number;
                    x?: {
                        ease?: | "linear"
                        | "smooth"
                        | "ease-in"
                        | "ease-out"
                        | "snappy"
                        | "expo"
                        | "back"
                        | "anticipate"
                        | "bounce"
                        | "elastic"
                        | "ball"
                        | "slow-mo"
                        | "steps"
                        | [number, number, number, number];
                        t: number;
                        v: number;
                    }[];
                    y?: {
                        ease?: | "linear"
                        | "smooth"
                        | "ease-in"
                        | "ease-out"
                        | "snappy"
                        | "expo"
                        | "back"
                        | "anticipate"
                        | "bounce"
                        | "elastic"
                        | "ball"
                        | "slow-mo"
                        | "steps"
                        | [number, number, number, number];
                        t: number;
                        v: number;
                    }[];
                },
            >
            | undefined
      • t: number
      • out: {
            flipX: boolean;
            flipY: boolean;
            opacity: number;
            rotation: number;
            scale: number;
            x: number;
            y: number;
        }
        • flipX: boolean
        • flipY: boolean
        • opacity: number
        • rotation: number

          Degrees, clockwise.

        • scale: number

          1 = fits inside the canvas (contain).

        • x: number

          Centre, as a fraction of canvas width (0.5 = centred).

        • y: number

          Centre, as a fraction of canvas height.

      Returns {
          flipX: boolean;
          flipY: boolean;
          opacity: number;
          rotation: number;
          scale: number;
          x: number;
          y: number;
      }

      • flipX: boolean
      • flipY: boolean
      • opacity: number
      • rotation: number

        Degrees, clockwise.

      • scale: number

        1 = fits inside the canvas (contain).

      • x: number

        Centre, as a fraction of canvas width (0.5 = centred).

      • y: number

        Centre, as a fraction of canvas height.