smartscroll

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!

Compatible with scrollbar

Try scrolling with the mouse wheel as well as the scrollbar, it works as you expect!

Permalink

You can bookmark a particular section, and it will stay there when you return!

Demo

Different Heights

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!

Demo

Hybrid Scroll

You can scroll normally in the white areas above, and also by sections in these coloured areas!

Demo

Auto-Hash

Noticed when you scrolled down, the URL's hash changes automatically? That's the auto-hash feature! You can enable it just by itself!

Demo

Keep History

By default, scrolling through different sections does not add to your history, but if you like that feature, you can turn it on too!

Demo

Responsive

You can disable section scrolling for windows below a certain width. Do not confuse this with touch devices, where scrolljacking is disabled by design.

Demo