Namespace: Animation:EasingFunctions

Animation:EasingFunctions

Members

(constant) EasingFunctions

A collection of all basic easing functions to be used in animations. All functions here take a float parameter between 0 and 1 and return a mapped value between 0 and 1.

Taken from: https://gist.github.com/gre/1650294

Available functions:

  • linear
  • easeInQuad
  • easeOutQuad
  • easeInOutQuad
  • easeInCubic
  • easeOutCubic
  • easeInOutCubic
  • easeInQuart
  • easeOutQuart
  • easeInOutQuart
  • easeInQuint
  • easeOutQuint
  • easeInOutQuint
Source:
Example
scrollTo(window, 1000, 0, EasingFunctions.easeInOutQuint);