/**
 * 获取兼容的动画更新函数
 */
function requestAnimationFrame(callback) {
  return (window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || function (cb) {
    setTimeout(cb, 1000 / 60);
  })(callback);
}

export default requestAnimationFrame;
