Updated examples

This commit is contained in:
Angelos Chalaris
2017-12-27 16:06:16 +02:00
committed by Agamemnon Zorbas
parent 91d42064c8
commit bb722b2eb4
101 changed files with 155 additions and 140 deletions

View File

@ -20,6 +20,6 @@ const elementIsVisibleInViewport = (el, partiallyVisible = false) => {
```js
// e.g. 100x100 viewport and a 10x10px element at position {top: -1, left: 0, bottom: 9, right: 10}
elementIsVisibleInViewport(el) -> false // (not fully visible)
elementIsVisibleInViewport(el, true) -> true // (partially visible)
elementIsVisibleInViewport(el) // false // (not fully visible)
elementIsVisibleInViewport(el, true) // true // (partially visible)
```