Stickybits is a lightweight alternative to
position: sticky polyfills that works perfectly for things like sticky headers.
.js-is-sticky) when position: sticky elements become active and a CSS Stuck Class (
.js-is-stuck) when they become stuck.
position: fixedhave because it tries to support
scrollevent listener will not be used if
position: stickyis supported.
Subscribe to email newsletter for latest jQuery plugins & tutorials.