diff --git a/README.md b/README.md index 61243a0ce..a9919919b 100644 --- a/README.md +++ b/README.md @@ -309,7 +309,7 @@ var rgbToHex = (r, g, b) => ### Scroll to top Get distance from top using `document.documentElement.scrollTop` or `document.body.scrollTop`. -Scroll by a fraction of the distance from top. Use `window.requestFrame()` to animate the scrolling. +Scroll by a fraction of the distance from top. Use `window.requestAnimationFrame()` to animate the scrolling. ```js var scrollToTop = _ => {