React Cool Inview Versions Save

😎 🖥️ React hook to monitor an element enters or leaves the viewport (or another element).

v2.0.1

3 years ago
  • Fix: reset scrollDirection when re-observe (#495)
  • Docs(readme): add doc for rootMargin option

v2.0.0

3 years ago

✌🏻 React Cool InView V2 comes out!

  • Remove ref API, use observe instead, see this example
  • Remove ref option, if you want to share a ref see this example

v1.3.2

3 years ago

v1.3.1

3 years ago
  • Fix: observe API not working at the first time (#493) (#495)

v1.3.0

3 years ago
  • Feat: now we can also subscribe element via observe API for handling conditional component (#493)
  • Refactor: enhance type

v1.2.2

3 years ago
  • Docs(README): correct the usage of the rootMargin option

v1.2.1

3 years ago
  • Docs: add TypeScript example, see doc

v1.2.0

3 years ago
  • Feat: add updatePosition for correcting the behavior of scrollDirection when jumping to a page section. (See API)

v1.1.10

3 years ago

v1.1.9

3 years ago
  • Perf: reduce bundle size.