Glimmr Canvas Animation

version 1/111030 by Erik Temple

  • Home page
  • Beginning
  • Previous
  • Next



  • Section: Assigning easing to animation tracks

    Assigning an easing equation to an animation track is simple. An animation track has a property called the "easing", and we simply assign the appropriate easing function to this property, e.g.:

        the easing of the default track is the bounce easing in rule
        
    If we don't specify an easing, then the default "linear easing" rule will be used. This rule does not involve any speed variations; it provides a simple linear interpolation of values.
        
    Note that motion and parameterized motion tracks (but no others) can also utilize a "secondary easing". If a secondary easing function is applied, then this function will apply only to the y-axis, while the primary easing function will be used for the x-axis:

        The easing of the complex movement track is the cubic easing in rule.
        The secondary easing of the complex movement track is the circular easing out rule.

    If we want to reset the secondary easing, we can do that by specifying "null easing". These phrases would return our track to its initial state:

        now the easing of the complex movement track is the linear easing rule;
        now the secondary easing of the complex movement track is the null easing rule.