How to scroll to a specific page element with jquery

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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s