Javascript Sticky Scroll
Created for personal use but everyone is welcome to use this in any project.
Usage
Add the class .sticky
to any element and it should follow the user down by
setting position: fixed
on the element.
Known issues
- "Stacking" two sticky elements is not supported, work-around by grouping
multiple elements in one
.sticky
container.
Known limitations
- No stop point is supported. Planned for implementation.
- No "real" configuration is supported. Planned for implementation. (Check demo for a simple work-around configuration)
Demo
Demo is located at https://codepen.io/didair/pen/XxjvXx.