code: function Animate (opts) {
      this.animation = opts.animation
      this.restoreOriginalFrame = opts.restoreOriginalFrame !== false
      opts.duration = this.animation.frames.length * this.animation.delay
  
      Animate.superclass.constructor.call(this, opts)
  }
docs: @class
  Animates a sprite given the name of an Animation
  
  @memberOf cocos.actions
  @extends cocos.actions.ActionInterval
  
  @opt {Float} duration Number of seconds to run action for
  @opt {cocos.Animation} animation Animation to run
  @opt {Boolean} [restoreOriginalFrame=true] Return to first frame when finished