Provides a data driven ways to connect a TJSPosition instance with a GSAP timeline and tweens.

GsapPosition.timeline supports the following types: 'add', 'addLabel', 'addPause', 'call', 'from', 'fromTo', 'set', 'to'.

Constructors

Methods

  • Parameters

    • target: GsapTarget

      A standard GSAP target or TJSPosition.

    • vars: object

      GSAP vars object for from.

    • Optionaloptions: GsapPositionOptions

      Options for filtering and initial data population for TJSPosition tweens.

    Returns object

    GSAP tween

  • Parameters

    • target: GsapTarget

      A standard GSAP target or TJSPosition.

    • fromVars: object

      GSAP fromVars object for fromTo

    • toVars: object

      GSAP toVars object for fromTo.

    • Optionaloptions: GsapPositionOptions

      Options for filtering and initial data population.

    Returns object

    GSAP tween

  • Checks the gsap module instance for existence of a method and GsapCompose for the same method name. This is helpful to determine which new features are available. Ex. quickTo is not available until GSAP 3.10+.

    Parameters

    • name: string

      Name of method to check.

    Returns boolean

    Gsap and GsapCompose support the given method.

  • Parameters

    • target: GsapTarget

      A standard GSAP target or TJSPosition.

    • key: string

      Property of position to manipulate.

    • vars: object

      GSAP vars object for quickTo.

    • Optionaloptions: GsapPositionOptions

      Options for filtering and initial data population.

    Returns Function

    GSAP quickTo function.

  • Defers to gsap module to register an easing function.

    Parameters

    • name: string

      Easing name.

    • ease: Function

      An easing function.

    Returns void

  • Defers to gsap module to register a plugin.

    Parameters

    • Rest...args: Function[]

      A list of plugins.

    Returns void

  • Parameters

    • target: GsapTarget

      A standard GSAP target or TJSPosition.

    • Optionalarg1: object | GsapData

      Either an object defining timeline options or GsapData.

    • Optionalarg2: object | GsapData | GsapPositionOptions

      When arg1 is defined as an object / Function; arg2 defines GsapData or Gsap options.

    • Optionalarg3: GsapPositionOptions

      Options for filtering and initial data population.

    Returns object

    GSAP timeline

  • Parameters

    • target: GsapTarget

      A standard GSAP target or TJSPosition.

    • vars: object

      GSAP vars object for to.

    • Optionaloptions: GsapPositionOptions

      Options for filtering and initial data population.

    Returns object

    GSAP tween