Skip to main content
Version: Phaser v4.0.0

Phaser.Math.Easing.Back

Scope: static

Source: src/math/easing/back/index.js#L7

Static functions

In

<static> In(v, [overshoot])

Description:

Back ease-in. This easing function starts the tween by briefly pulling back in the opposite direction before moving forward, creating an anticipation effect at the beginning of the transition. The higher the overshoot value, the further back the value pulls before proceeding.

Parameters:

nametypeoptionaldefaultdescription
vnumberNoThe normalized time value to ease, between 0 and 1.
overshootnumberYes1.70158The overshoot amount. Controls how far back the value pulls before moving forward. Higher values produce a more pronounced pullback effect.

Returns: number - The eased value.

Source: src/math/easing/back/In.js#L7
Since: 3.0.0


InOut

<static> InOut(v, [overshoot])

Description:

Back ease-in/out. This easing function applies a back effect to both the start and end of the tween: the value initially pulls back slightly before accelerating forward, then overshoots the target before snapping back to rest, producing a symmetrical spring-like motion. Use this when you want a lively, bouncy feel at both ends of an animation.

Parameters:

nametypeoptionaldefaultdescription
vnumberNoThe value to be eased.
overshootnumberYes1.70158Controls the magnitude of the pull-back and overshoot. Higher values produce a more pronounced effect. The default produces approximately 10% overshoot at each end.

Returns: number - The eased value.

Source: src/math/easing/back/InOut.js#L7
Since: 3.0.0


Out

<static> Out(v, [overshoot])

Description:

Back ease-out. The tween moves quickly at first, then overshoots its final value before settling back to the target. The overshoot occurs at the end of the transition, giving a slight 'bounce past and return' effect.

Parameters:

nametypeoptionaldefaultdescription
vnumberNoThe value to be eased, typically in the range [0, 1].
overshootnumberYes1.70158The overshoot amount. Higher values produce a more pronounced overshoot.

Returns: number - The eased value.

Source: src/math/easing/back/Out.js#L7
Since: 3.0.0