Class TweenMax

Hierarchy

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(target: Object, duration: number, vars: Object): TweenMax

Parameters

  • target: Object
  • duration: number
  • vars: Object

Returns

TweenMax

Properties

public data: any

public target: Object

public static ticker: IDispatcher

public timeline: SimpleTimeline

public vars: Object

Methods

public delay(value: number): any

Parameters

  • value: number

Returns

any

public static delayedCall(delay: number, callback: Function, params?: Array<any>, scope?: any, useFrames?: boolean): TweenMax

Parameters

  • delay: number
  • callback: Function
  • params?: Array<any> optional
  • scope?: any optional
  • useFrames?: boolean optional

Returns

TweenMax

public duration(value: number): any

Parameters

  • value: number

Returns

any

public eventCallback(type: string, callback?: Function, params?: Array<any>, scope?: any): any

Parameters

  • type: string
  • callback?: Function optional
  • params?: Array<any> optional
  • scope?: any optional

Returns

any

public static from(target: Object, duration: number, vars: Object): TweenMax

Parameters

  • target: Object
  • duration: number
  • vars: Object

Returns

TweenMax

public static fromTo(target: Object, duration: number, fromVars: Object, toVars: Object): TweenMax

Parameters

  • target: Object
  • duration: number
  • fromVars: Object
  • toVars: Object

Returns

TweenMax

public static getAllTweens(includeTimelines?: boolean): Array<any>

Parameters

  • includeTimelines?: boolean optional

Returns

Array<any>

public static getTweensOf(target: Object): Array<any>

Parameters

  • target: Object

Returns

Array<any>

public invalidate(): any

Returns

any

public isActive(): boolean

Returns

boolean

public static isTweening(target: Object): boolean

Parameters

  • target: Object

Returns

boolean

public kill(vars?: Object, target?: Object): any

Parameters

  • vars?: Object optional
  • target?: Object optional

Returns

any

public static killAll(complete?: boolean, tweens?: boolean, delayedCalls?: boolean, timelines?: boolean)

Parameters

  • complete?: boolean optional
  • tweens?: boolean optional
  • delayedCalls?: boolean optional
  • timelines?: boolean optional

public static killChildTweensOf(parent: any, complete?: boolean)

Parameters

  • parent: any
  • complete?: boolean optional

public static killDelayedCallsTo(func: Function)

Parameters

  • func: Function

public static killTweensOf(target: Object, vars?: Object)

Parameters

  • target: Object
  • vars?: Object optional

public pause(atTime?: any, suppressEvents?: boolean): any

Parameters

  • atTime?: any optional
  • suppressEvents?: boolean optional

Returns

any

public static pauseAll(tweens?: boolean, delayedCalls?: boolean, timelines?: boolean)

Parameters

  • tweens?: boolean optional
  • delayedCalls?: boolean optional
  • timelines?: boolean optional

public paused(value?: boolean): any

Parameters

  • value?: boolean optional

Returns

any

public play(from?: any, suppressEvents?: boolean): any

Parameters

  • from?: any optional
  • suppressEvents?: boolean optional

Returns

any

public progress(value: number): any

Parameters

  • value: number

Returns

any

public repeat(value: number): any

Parameters

  • value: number

Returns

any

public repeatDelay(value: number): any

Parameters

  • value: number

Returns

any

public restart(includeDelay?: boolean, suppressEvents?: boolean): any

Parameters

  • includeDelay?: boolean optional
  • suppressEvents?: boolean optional

Returns

any

public resume(from?: any, suppressEvents?: boolean): any

Parameters

  • from?: any optional
  • suppressEvents?: boolean optional

Returns

any

public static resumeAll(tweens?: boolean, delayedCalls?: boolean, timelines?: boolean)

Parameters

  • tweens?: boolean optional
  • delayedCalls?: boolean optional
  • timelines?: boolean optional

public reverse(from?: any, suppressEvents?: boolean): any

Parameters

  • from?: any optional
  • suppressEvents?: boolean optional

Returns

any

public reversed(value?: boolean): any

Parameters

  • value?: boolean optional

Returns

any

public seek(time: any, suppressEvents?: boolean): any

Parameters

  • time: any
  • suppressEvents?: boolean optional

Returns

any

public static set(target: Object, vars: Object): TweenMax

Parameters

  • target: Object
  • vars: Object

Returns

TweenMax

public static staggerFrom(targets: Array<Object>, duration: number, vars: Object, stagger: number, onCompleteAll?: Function, onCompleteAllParams?: Array<any>, onCompleteAllScope?: any): Array<any>

Parameters

  • targets: Array<Object>
  • duration: number
  • vars: Object
  • stagger: number
  • onCompleteAll?: Function optional
  • onCompleteAllParams?: Array<any> optional
  • onCompleteAllScope?: any optional

Returns

Array<any>

public static staggerFromTo(targets: Array<Object>, duration: number, fromVars: Object, toVars: Object, stagger: number, onCompleteAll?: Function, onCompleteAllParams?: Array<any>, onCompleteAllScope?: any): Array<any>

Parameters

  • targets: Array<Object>
  • duration: number
  • fromVars: Object
  • toVars: Object
  • stagger: number
  • onCompleteAll?: Function optional
  • onCompleteAllParams?: Array<any> optional
  • onCompleteAllScope?: any optional

Returns

Array<any>

public static staggerTo(targets: Array<Object>, duration: number, vars: Object, stagger: number, onCompleteAll?: Function, onCompleteAllParams?: Array<any>, onCompleteAllScope?: any): Array<any>

Parameters

  • targets: Array<Object>
  • duration: number
  • vars: Object
  • stagger: number
  • onCompleteAll?: Function optional
  • onCompleteAllParams?: Array<any> optional
  • onCompleteAllScope?: any optional

Returns

Array<any>

public startTime(value: number): any

Parameters

  • value: number

Returns

any

public time(value: number, suppressEvents?: boolean): any

Parameters

  • value: number
  • suppressEvents?: boolean optional

Returns

any

public timeScale(value: number): any

Parameters

  • value: number

Returns

any

public static to(target: Object, duration: number, vars: Object): TweenMax

Parameters

  • target: Object
  • duration: number
  • vars: Object

Returns

TweenMax

public totalDuration(value: number): any

Parameters

  • value: number

Returns

any

public totalProgress(value: number): any

Parameters

  • value: number

Returns

any

public totalTime(time: number, suppressEvents?: boolean): any

Parameters

  • time: number
  • suppressEvents?: boolean optional

Returns

any

public updateTo(vars: Object, resetDuration?: boolean): any

Parameters

  • vars: Object
  • resetDuration?: boolean optional

Returns

any

public yoyo(value?: boolean): any

Parameters

  • value?: boolean optional

Returns

any