Update formatting
This commit is contained in:
@ -7,7 +7,7 @@ lastUpdated: 2020-10-22T20:23:47+03:00
|
||||
|
||||
Checks if the element specified is visible in the viewport.
|
||||
|
||||
- Use `Element.getBoundingClientRect()` and the `Window.inner(Width|Height)` values to determine if a given element is visible in the viewport.
|
||||
- Use `Element.getBoundingClientRect()`, `Window.innerWidth` and `Window.innerHeight` to determine if a given element is visible in the viewport.
|
||||
- Omit the second argument to determine if the element is entirely visible, or specify `true` to determine if it is partially visible.
|
||||
|
||||
```js
|
||||
|
||||
Reference in New Issue
Block a user