libPresetMotions: {
    ~move-to: {
        defaultConfig: {};
        immutableConfig: {};
        generateKeyframes(targetElem: undefined | null | Element, translationOptions?: Partial<MoveToOptions>): {
            backwardFrames: {
                translate: string;
            }[];
            forwardFrames: {
                translate: string;
            }[];
        };
    };
    ~translate: {
        defaultConfig: {};
        immutableConfig: {};
        generateKeyframes(translationOptions?: Partial<TranslateOptions>): {
            backwardFrames: {
                translate: string;
            }[];
            forwardFrames: {
                translate: string;
            }[];
        };
    };
} = ...

Type declaration

  • ~move-to: {
        defaultConfig: {};
        immutableConfig: {};
        generateKeyframes(targetElem: undefined | null | Element, translationOptions?: Partial<MoveToOptions>): {
            backwardFrames: {
                translate: string;
            }[];
            forwardFrames: {
                translate: string;
            }[];
        };
    }

    Element is moved with respect to another element.

    • defaultConfig: {}
      • immutableConfig: {}
        • generateKeyframes:function
          • Parameters

            • targetElem: undefined | null | Element

              element to which our element should move

            • translationOptions: Partial<MoveToOptions> = {}

              options defining the behavior of the motion

            Returns {
                backwardFrames: {
                    translate: string;
                }[];
                forwardFrames: {
                    translate: string;
                }[];
            }

            • backwardFrames: {
                  translate: string;
              }[]
            • forwardFrames: {
                  translate: string;
              }[]
      • ~translate: {
            defaultConfig: {};
            immutableConfig: {};
            generateKeyframes(translationOptions?: Partial<TranslateOptions>): {
                backwardFrames: {
                    translate: string;
                }[];
                forwardFrames: {
                    translate: string;
                }[];
            };
        }

        Element moves based on the specified translation options.

        • defaultConfig: {}
          • immutableConfig: {}
            • generateKeyframes:function
              • Parameters

                Returns {
                    backwardFrames: {
                        translate: string;
                    }[];
                    forwardFrames: {
                        translate: string;
                    }[];
                }

                • backwardFrames: {
                      translate: string;
                  }[]
                • forwardFrames: {
                      translate: string;
                  }[]