ksmai·Follow1 min read·May 13, 2019--1ListenShareThe Intersection Observer API in modern browsers seem to be particularly useful for this effect. The detection part does not run in the main thread so there is a better chance to achieve smooth scrolling experience.