The IntersectionObserver API can be used to observe elements dynamically and find out whether they are intersecting or not.
- Clone this repo with
git clone https://github.com/christiankozalla/intersection-observer.git
cd intersection-observer
- Start up the development server - e.g. with
py -m http.server
from the root directory of this repo.