Day 87 of #100DaysOfCode
So we can use .getBoundingClientRect() to get an element's coordinates and window.scrollX/window.scrollY to get scroll positions. It can be combined with window.scrollTo() or .scrollIntoView() for smooth scrolling.  
#JavaScript #WebDevelopment
#100DaysOfCode #JavaScript #WebDevelopment