Class GsapCompose
Index
Constructors
Methods
Constructors
constructor
- new
Gsap (): GsapComposeCompose Returns GsapCompose
Methods
Static
from
- from(target, vars, options?): object
Parameters
- target: GsapTarget
A standard GSAP target or TJSPosition.
- vars: object
GSAP vars object for
from
. Optional
options: GsapPositionOptionsOptions for filtering and initial data population for TJSPosition tweens.
Returns object
GSAP tween
- target: GsapTarget
Static
fromTo
- from
To (target, fromVars, toVars, options?): object Parameters
- target: GsapTarget
A standard GSAP target or TJSPosition.
- fromVars: object
GSAP fromVars object for
fromTo
- toVars: object
GSAP toVars object for
fromTo
. Optional
options: GsapPositionOptionsOptions for filtering and initial data population.
Returns object
GSAP tween
- target: GsapTarget
Static
hasMethod
- has
Method (name): boolean 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 GSAP3.10+
.Parameters
- name: string
Name of method to check.
Returns boolean
Gsap and GsapCompose support the given method.
- name: string
Static
quickTo
- quick
To (target, key, vars, options?): Function Parameters
- target: GsapTarget
A standard GSAP target or TJSPosition.
- key: string
Property of position to manipulate.
- vars: object
GSAP vars object for
quickTo
. Optional
options: GsapPositionOptionsOptions for filtering and initial data population.
Returns Function
GSAP quickTo function.
- target: GsapTarget
Static
registerEase
- register
Ease (name, ease): void Defers to
gsap
module to register an easing function.Parameters
- name: string
Easing name.
- ease: Function
An easing function.
Returns void
- name: string
Static
registerPlugin
- register
Plugin (...args): void Defers to
gsap
module to register a plugin.Parameters
Rest
...args: Function[]A list of plugins.
Returns void
Static
timeline
- timeline(target, arg1?, arg2?, arg3?): object
Parameters
- target: GsapTarget
A standard GSAP target or TJSPosition.
Optional
arg1: object | GsapDataEither an object defining timeline options or GsapData.
Optional
arg2: object | GsapData | GsapPositionOptionsWhen arg1 is defined as an object / Function; arg2 defines GsapData or Gsap options.
Optional
arg3: GsapPositionOptionsOptions for filtering and initial data population.
Returns object
GSAP timeline
- target: GsapTarget
Static
to
- to(target, vars, options?): object
Parameters
- target: GsapTarget
A standard GSAP target or TJSPosition.
- vars: object
GSAP vars object for
to
. Optional
options: GsapPositionOptionsOptions for filtering and initial data population.
Returns object
GSAP tween
- target: GsapTarget
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'.