Check when HTML elements are inside the viewport with IntersectionObserver (to keep test off main thread). You can either add classes for various states or provide your own JS callback function
shakyjake/InView-JS
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|