Elastic

.Math.Easing. Elastic

Methods

(static) In(v, amplitudeopt, periodopt) → {number}

Since:
  • 3.0.0
弹性舒适.
Parameters:
Name Type Attributes Default Description
v number 要补间的值.
amplitude number <optional>
0.1 弹性缓和的幅度.
period number <optional>
0.1 Sets how tight the sine-wave is, where smaller values are tighter waves, which result in more cycles.
Returns:
补间值.
Type
number

(static) InOut(v, amplitudeopt, periodopt) → {number}

Since:
  • 3.0.0
弹性放松/放松.
Parameters:
Name Type Attributes Default Description
v number 要补间的值.
amplitude number <optional>
0.1 弹性缓和的幅度.
period number <optional>
0.1 Sets how tight the sine-wave is, where smaller values are tighter waves, which result in more cycles.
Returns:
补间值.
Type
number

(static) Out(v, amplitudeopt, periodopt) → {number}

Since:
  • 3.0.0
弹性放松.
Parameters:
Name Type Attributes Default Description
v number 要补间的值.
amplitude number <optional>
0.1 弹性缓和的幅度.
period number <optional>
0.1 Sets how tight the sine-wave is, where smaller values are tighter waves, which result in more cycles.
Returns:
补间值.
Type
number