Html – How to find distance between top of element and top of viewable webpage
I have an element that has position sticky and has the top property set to 30px. I want it so that when the element becomes stuck (so to say) It has a class of stuck added to it. I'm aware…