Merge pull request #11 from segmentationfaulter/patch-1

Fixes a typo
This commit is contained in:
Angelos Chalaris
2017-12-12 11:13:48 +02:00
committed by GitHub

View File

@ -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 = _ => {