Glue Stick
Easy to use sticky elements.
Features
- Multiple sticky elements stacked together
- Support for responsiveness
- Footer handling
- Pre and post user defined functions can be called during significant events
- Stick to certain element
- Stick inside parent element
Dependencies
- Lodash merge function.
- IntersectionObserver polyfill
- hc-sticky
Usage
Install
npm install @informatix8/glue-stick --save-dev
CDN
<script src="https://unpkg.com/@informatix8/glue-stick/dist/glue-stick.all.umd.js"></script>
Vanilla Javascript
new GlueStick({
subject: 'aside',
footer: 'footer'
});
Development
npm run dev
Build
npm run build
Release
npm run build
git tag -a vX.Y.Z
git push origin master
git push origin --tags
npm publish --access=public .