vvo / in-viewport

Get a callback when any element becomes visible in a viewport (body or custom viewport)
MIT License
276 stars 24 forks source link

Pros and cons of `in-viewport` and `react-waypoint`? #34

Closed gy134340 closed 6 years ago

gy134340 commented 6 years ago

hi, vvo, first, I think this is a great work of this lib, and I am working on detecting the dom is in the Viewport things. also I found many other solutions, such as react-waypoint and react-visible-sensor, they all looks can do the same thing.

could you tell me what's the pros and cons of in-viewport and react-waypoint, or waypoints? are they the same mechanism? which is better in different scene?

vvo commented 6 years ago

I have no idea sorry, take the one that works for you clearly

gy134340 commented 6 years ago

@vvo thank you, hope this lib better and better, I am using it now