Skip to main content
Version: Phaser v3.88.2

Phaser.Types.Tweens

Scope: static

Source: src/tweens/typedefs/index.js#L7

Static functions​

Event​

Event​

Description:

A Tween Event.

Source: src/tweens/typedefs/Event.js#L1
Since: 3.19.0


GetActiveCallback​

GetActiveCallback​

Parameters:

nametypeoptionaldescription
targetanyNoThe tween target.
keystringNoThe target property.
valuenumberNoThe current value of the target property.
targetIndexnumberNoThe index of the target within the Tween.
totalTargetsnumberNoThe total number of targets in this Tween.
tweenPhaser.Tweens.TweenNoThe Tween that invoked this callback.

Returns: number - - The new value.

Source: src/tweens/typedefs/GetActiveCallback.js#L1
Since: 3.19.0


GetEndCallback​

GetEndCallback​

Parameters:

nametypeoptionaldescription
targetanyNoThe tween target.
keystringNoThe target property.
valuenumberNoThe current value of the target property.
targetIndexnumberNoThe index of the target within the Tween.
totalTargetsnumberNoThe total number of targets in this Tween.
tweenPhaser.Tweens.TweenNoThe Tween that invoked this callback.

Returns: number - - The new value.

Source: src/tweens/typedefs/GetEndCallback.js#L1
Since: 3.18.0


GetStartCallback​

GetStartCallback​

Parameters:

nametypeoptionaldescription
targetanyNoThe tween target.
keystringNoThe target property.
valuenumberNoThe current value of the target property.
targetIndexnumberNoThe index of the target within the Tween.
totalTargetsnumberNoThe total number of targets in this Tween.
tweenPhaser.Tweens.TweenNoThe Tween that invoked this callback.

Returns: number - - The new value.

Source: src/tweens/typedefs/GetStartCallback.js#L1
Since: 3.18.0


NumberTweenBuilderConfig​

NumberTweenBuilderConfig​

Source: src/tweens/typedefs/NumberTweenBuilderConfig.js#L1
Since: 3.18.0


StaggerConfig​

StaggerConfig​

Source: src/tweens/typedefs/StaggerConfig.js#L1
Since: 3.19.0


TweenBuilderConfig​

TweenBuilderConfig​

Source: src/tweens/typedefs/TweenBuilderConfig.js#L1
Since: 3.18.0


TweenCallbacks​

TweenCallbacks​

Source: src/tweens/typedefs/TweenCallbacks.js#L1
Since: 3.60.0


TweenCallbackTypes​

TweenCallbackTypes​

Source: src/tweens/typedefs/TweenCallbackTypes.js#L1
Since: 3.60.0


TweenChainBuilderConfig​

TweenChainBuilderConfig​

Source: src/tweens/typedefs/TweenChainBuilderConfig.js#L1
Since: 3.60.0


TweenConfigDefaults​

TweenConfigDefaults​

Source: src/tweens/tween/Defaults.js#L7
Since: 3.0.0


TweenDataConfig​

TweenDataConfig​

Source: src/tweens/typedefs/TweenDataConfig.js#L1
Since: 3.0.0


TweenDataGenConfig​

TweenDataGenConfig​

Source: src/tweens/typedefs/TweenDataGenConfig.js#L1
Since: 3.0.0


TweenFrameDataConfig​

TweenFrameDataConfig​

Source: src/tweens/typedefs/TweenFrameDataConfig.js#L1
Since: 3.60.0


TweenOnActiveCallback​

TweenOnActiveCallback​

Parameters:

nametypeoptionaldescription
tweenPhaser.Tweens.TweenNoA reference to the Tween.
targetsany | Array.<any>NoThe targets of the Tween. If this Tween has multiple targets this will be an array of the targets.
paramanyNoAny value passed in onActiveParams.

Source: src/tweens/typedefs/TweenOnActiveCallback.js#L1
Since: 3.19.0


TweenOnCompleteCallback​

TweenOnCompleteCallback​

Parameters:

nametypeoptionaldescription
tweenPhaser.Tweens.TweenNoA reference to the Tween.
targetsany | Array.<any>NoThe targets of the Tween. If this Tween has multiple targets this will be an array of the targets.
paramanyNoAny value passed in onCompleteParams.

Source: src/tweens/typedefs/TweenOnCompleteCallback.js#L1
Since: 3.18.0


TweenOnLoopCallback​

TweenOnLoopCallback​

Parameters:

nametypeoptionaldescription
tweenPhaser.Tweens.TweenNoA reference to the Tween.
targetsany | Array.<any>NoThe targets of the Tween. If this Tween has multiple targets this will be an array of the targets.
paramanyNoAny value passed in onLoopParams.

Source: src/tweens/typedefs/TweenOnLoopCallback.js#L1
Since: 3.18.0


TweenOnPauseCallback​

TweenOnPauseCallback​

Parameters:

nametypeoptionaldescription
tweenPhaser.Tweens.TweenNoA reference to the Tween.
targetsany | Array.<any>NoThe targets of the Tween. If this Tween has multiple targets this will be an array of the targets.
paramanyNoAny value passed in onPauseParams.

Source: src/tweens/typedefs/TweenOnPauseCallback.js#L1
Since: 3.60.0


TweenOnRepeatCallback​

TweenOnRepeatCallback​

Parameters:

nametypeoptionaldescription
tweenPhaser.Tweens.TweenNoA reference to the Tween.
targetanyNoThe current target of the Tween. If this Tween has multiple targets, this will be a reference to just the single one being updated prior to this callback.
keystringNoThe property that is being updated on the target.
currentnumberNoThe current value of the property being set on the target.
previousnumberNoThe previous value of the property being set on the target.
paramanyNoAny value passed in onRepeatParams.

Source: src/tweens/typedefs/TweenOnRepeatCallback.js#L1
Since: 3.18.0


TweenOnResumeCallback​

TweenOnResumeCallback​

Parameters:

nametypeoptionaldescription
tweenPhaser.Tweens.TweenNoA reference to the Tween.
targetsany | Array.<any>NoThe targets of the Tween. If this Tween has multiple targets this will be an array of the targets.
paramanyNoAny value passed in onPauseParams.

Source: src/tweens/typedefs/TweenOnResumeCallback.js#L1
Since: 3.60.0


TweenOnStartCallback​

TweenOnStartCallback​

Parameters:

nametypeoptionaldescription
tweenPhaser.Tweens.TweenNoA reference to the Tween.
targetsany | Array.<any>NoThe targets of the Tween. If this Tween has multiple targets this will be an array of the targets.
paramanyNoAny value passed in onStartParams.

Source: src/tweens/typedefs/TweenOnStartCallback.js#L1
Since: 3.18.0


TweenOnStopCallback​

TweenOnStopCallback​

Parameters:

nametypeoptionaldescription
tweenPhaser.Tweens.TweenNoA reference to the Tween.
targetsany | Array.<any>NoThe targets of the Tween. If this Tween has multiple targets this will be an array of the targets.
paramanyNoAny value passed in onStopParams.

Source: src/tweens/typedefs/TweenOnStopCallback.js#L1
Since: 3.24.0


TweenOnUpdateCallback​

TweenOnUpdateCallback​

Parameters:

nametypeoptionaldescription
tweenPhaser.Tweens.TweenNoA reference to the Tween.
targetanyNoThe current target of the Tween. If this Tween has multiple targets, this will be a reference to just the single one being updated prior to this callback.
keystringNoThe property that is being updated on the target.
currentnumberNoThe current value of the property being set on the target.
previousnumberNoThe previous value of the property being set on the target.
paramanyNoAny value passed in onUpdateParams.

Source: src/tweens/typedefs/TweenOnUpdateCallback.js#L1
Since: 3.18.0


TweenOnYoyoCallback​

TweenOnYoyoCallback​

Parameters:

nametypeoptionaldescription
tweenPhaser.Tweens.TweenNoA reference to the Tween.
targetanyNoThe current target of the Tween. If this Tween has multiple targets, this will be a reference to just the single one being updated prior to this callback.
keystringNoThe property that is being updated on the target.
currentnumberNoThe current value of the property being set on the target.
previousnumberNoThe previous value of the property being set on the target.
paramanyNoAny value passed in onYoyoParams.

Source: src/tweens/typedefs/TweenOnYoyoCallback.js#L1
Since: 3.18.0


TweenPropConfig​

TweenPropConfig​

Source: src/tweens/typedefs/TweenPropConfig.js#L1
Since: 3.18.0