VideoUltra API
    Preparing search index...

    Function retimeKeyframes

    • Keyframes for a part of the item that starts offset later in its old timing (split, trim from the start): the same keyframes, shifted, so the part plays its share of the motion exactly — even inside a curve.

      Parameters

      • keyframes: Readonly<Keyframes>
      • offset: number

      Returns {
          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;
          }[];
      }

      • Optionalopacity?: {
            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;
        }[]
      • Optionalrotation?: {
            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;
        }[]
      • Optionalscale?: {
            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;
        }[]
      • Optionalshift?: number

        Flicks added to the item's time before sampling: a part of a split (or a clip trimmed at its start) keeps the whole motion and plays its own share of it, exactly. Missing = 0.

      • Optionalx?: {
            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;
        }[]
      • Optionaly?: {
            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;
        }[]