scroll-stash

A JavaScript plugin to help preserve an element's scroll position.


API

Example 3

Scrolling anchor in view should take into account a sticky header and footer along with the set padding.

Example 4

Using a custom anchor by providing a selector via data-scroll-stash-anchor which overrides the anchor selector passed in options.