Display an easing function
This simple helper lets you explore how the different easing functions govern the interpolation of data.
- The name of the easing function to display (see details)
How transitions proceed between states are defined by an easing function. The
easing function converts the parameterized progression from one state to the
next to a new number between 0 and 1.
linear easing is equivalent to
an identity function that returns the input unchanged. In addition there are
a range of additional easers available, each with three modifiers.
- The easing function is applied as-is
- Models a power-of-2 function
In addition to this function a good animated explanation can be found here.
This function is called for its side effects
# The default - identity display_ease('linear') # A more fancy easer display_ease('elastic-in')