fkhadra / react-on-screen

Check if a react component in the viewport
https://fkhadra.github.io/react-on-screen/
MIT License
405 stars 50 forks source link

Switch to intersection observer api when compatible with most browser #8

Open fkhadra opened 6 years ago

Freddy03h commented 6 years ago

Maybe is it possible using the polyfill ? https://github.com/w3c/IntersectionObserver/tree/master/polyfill

fkhadra commented 6 years ago

Thanks @Freddy03h I'll take a look at it.

dmwyatt commented 3 years ago

https://caniuse.com/intersectionobserver

Looks like you can switch :D