src/animation/animation.js
/**
   * Allows for chaining of animations
   *
   * @chainable
   * @param  {Animation} animation  The animation to queue after this one
   *                                completes. Note that this isn't really
   *                                valid for looping animations
   * @return {this} Returns `this`
   */
Allows for chaining of animations
@chainable
@param  {Animation} animation  The animation to queue after this one
completes. Note that this isn't really
valid for looping animations
@return {this} Returns `this`
Allows for chaining of animations @chainable @param { Animation } animation The animation to queue after this one completes . Note that this isn ' t really valid for looping animations @return { this } Returns ` this `
chain(animation) {
    if (!(animation instanceof Animation)) {
      throw new Error('New animation should be an instance of an Animation');
    }
    this.next.push(animation);
    return this;
  }
chain ( animation ) { if ( ! ( animation instanceof Animation ) ) { throw new Error ( 'New animation should be an instance of an Animation' ) ; } this . next . push ( animation ) ; return this ; }
Allows for chaining of animations
 @chainable
 @param  {Animation} animation  The animation to queue after this one
                                completes.
Allows for chaining of animations @chainable @param { Animation } animation The animation to queue after this one completes .