Open davidnguyen11 opened 4 years ago
Problem Because of using get getBoundingClientRect, when we resize the browser window, the computation of coordinates (x, y), width and height will be different depends on the size of window
Solution
Consider using https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API
Problem Because of using get getBoundingClientRect, when we resize the browser window, the computation of coordinates (x, y), width and height will be different depends on the size of window
Solution
Consider using https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API