Garry's Mod Wiki

math.ease.InElastic

  number math.ease.InElastic( number fraction )

Description

Eases in like a rubber band.

This doesn't work properly when used with Lerp as it clamps the fraction between 0 and 1. Using your own version of Lerp that is unclamped would be necessary instead.

Arguments

1 number fraction
Fraction of the progress to ease, from 0 to 1

Returns

1 number
"Eased" Value