Fully renamed and updated everything, tagged, built
This commit is contained in:
11
snippets/bottomVisible.md
Normal file
11
snippets/bottomVisible.md
Normal file
@ -0,0 +1,11 @@
|
||||
### bottomVisible
|
||||
|
||||
Returns `true` if the bottom of the page is visible, `false` otherwise.
|
||||
|
||||
Use `scrollY`, `scrollHeight` and `clientHeight` to determine if the bottom of the page is visible.
|
||||
|
||||
```js
|
||||
const bottomVisible = () =>
|
||||
document.documentElement.clientHeight + window.scrollY >= document.documentElement.scrollHeight || document.documentElement.clientHeight;
|
||||
// bottomVisible() -> true
|
||||
```
|
||||
Reference in New Issue
Block a user