Closed ooade closed 6 years ago
any reason why u want this as a dev-dependency? I mean, if scrollToReveal is not cool enough can't we just add react-waypoint as a dependency?
Eliminating Unused Code: Because not everyone will need this feature. For example, Facebook and Twitter don't use the ScrollToView feature but Medium uses.
I Stumbled on the Intersection Observer API as I was surfing the net today. Matches our use cases.
Our implementation on ScrollToView is not cool enough, we need something a little bit powerful. We'd need to add react-waypoint as a dev-dependency and ask user to install it if needed. I'm not sure how we can pull this off easily :sweat_smile: