coldtype.time.easing.ease

ease(style, x)

Though available as a general-purpose function, this logic is usually accessed through something like the .progress function on an animation or timeable.

Return two values — the first is the easing result at a given time x; the second is the tangent to that, if calculable (is not, atm, calculable for the mnemonics given)

for reference, easing mnemonics:

  • cei = CubicEaseIn

  • ceo = CubicEaseOut

  • ceio = CubicEaseInOut

  • qei = QuadEaseIn

  • qeo = QuadEaseOut

  • qeio = QuadEaseInOut

  • eei = ExponentialEaseIn

  • eeo = ExponentialEaseOut

  • eeio = ExponentialEaseInOut

  • sei = SineEaseIn

  • seo = SineEaseOut

  • seio = SineEaseInOut

  • bei = BounceEaseIn

  • beo = BounceEaseOut

  • beio = BounceEaseInOut

  • eleo = ElasticEaseOut

  • elei = ElasticEaseIn,

  • elieo = ElasticEaseInOut