How to scroll to a specific page element with jquery

Standard

Since the single-page-scroll-to-section designs have begun to be increasingly popular, and because I did such a design a few days ago, i ran into problems with finding a good way to scroll to a page element from the top.

So after doing a lot of digging and research, i wrote my own, which btw: works like a charm in all browsers.

Here’s the gist link to it: “Scroll to page element” script