So I like the ability to set a fixed position on an element after the user scrolls to specified position, but it is limited. What I need also is the ability to unset the fixed position when the user scrolls to a different position.

Scroll position 160 = fix element position
Scroll position 700 = unfix element position

This is currently not and option so I am having to duplicate the element and hide it/show it.

Scroll position 160 = fix element position
Scroll position 700 = hide fixed element + show hidden element

If there is an easier way to do this please let me know.