SmoothScroll Stacks Set
add an anchor you can scroll to smoothly
skip to: demos
On a web page, links cannot only direct to other pages, but also to other locations on the same page. These so called destination anchors
are used as bookmarks on a page you automatically scroll to when you click a link that directs to it elsewhere on a page. This is especially handy on pages with long pieces of text. Divide the text in chapters, make a table of content on the top, and let your visitor ‘jump’ from the table of content to the chapter and back; from the top to the bottom and vice versa, etc.
Unfortunately, when you just use destination anchors, the page will indeed jump up and down. This does not only look ugly, it may also confuse your visitors easily.
Here’s where the SmoothScroll Stack comes in. With this stack, you can not only create those destination anchors easily, your visitor will also be taken from one position on the page to the other smoothly.