This page has a beautiful javascript effect if you scroll. The index follows the page smoothly and highlights the displayed section. Does anyone know if this is a public library/function?
These sticky elements seem to scroll with the page (or stick?) much more smoothly than I've seen on other pages. Are there crappy versions out there or could I just be experiencing a newer browser optimization?
It's a simple trick. Instead of using JavaScript to stick them on the page, you change their positioning to fixed when they hit the window's edge. Then the browser takes care of the rest.
This page has a beautiful javascript effect if you scroll. The index follows the page smoothly and highlights the displayed section. Does anyone know if this is a public library/function?