Closed al-fred-o closed 4 years ago
Using the getBoundingClientRect we can find the position of an element on the page and then adjust for scrolling using the window.scrollX property.
Using the getBoundingClientRect we can find the position of an element on the page and then adjust for scrolling using the window.scrollX property.