Update formatting

This commit is contained in:
Isabelle Viktoria Maciohsek
2022-01-30 18:41:43 +02:00
parent fab0a7fa3b
commit efdd652b23
7 changed files with 7 additions and 7 deletions

View File

@ -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