function toSeconds(value) {
    if (angular.isNumber(value)) return value / 1000;
  }
Specifies the duration of the animation in milliseconds.
@param {number|{open: number, close: number}} duration
@returns {!MdPanelAnimation}