https://developer.mozilla.org/zh-CN/docs/Web/API/HTMLElement/offsetWidth https://developer.mozilla.org/zh-CN/docs/Web/API/Window/requestAnimationFrame