A tiny (1378b minfied + gzipped) jQuery plugin for scrolljacking and auto-hashing
See it on GitHub, or see some comparisons
Try out other examples!
This section is not inside the section wrapper, so normal scrolling here!
Try scrolling with the mouse wheel as well as the scrollbar, it works as you expect!
Normally, your sections will have to be 100% of the viewport (like it is now) for it to work. With smartscroll, the section can all be of different heights!
DemoYou can scroll normally in the white areas above, and also by sections in these coloured areas!
DemoNoticed when you scrolled down, the URL's hash changes automatically? That's the auto-hash feature! You can enable it just by itself!
DemoBy default, scrolling through different sections does not add to your history, but if you like that feature, you can turn it on too!
DemoYou can disable section scrolling for windows below a certain width. Do not confuse this with touch devices, where scrolljacking is disabled by design.
Demo