Previously finding whether an element has entered the screen used to be a pain, but the new Intersection Observer API makes this quite easy, and less error prone.
https://usefulangle.com/post/113/javascript-detecting-element-visible-during-scroll
* Web Development Updates
* Javascript
* CSS
* UI / UX
* Node.js
* PHP
* Cloud
* Videos
* Web Development Updates
* Javascript
* CSS
* UI / UX
* Node.js
* PHP
* Cloud
* Videos
* See demo
* getBoundingClientRect()
* Intersection Observer API Tutorial
* How to Detect Change in Element Size with Javascript