2.1.1 • Published 5 years ago

@informatix8/glue-stick v2.1.1

Weekly downloads
4
License
ISC
Repository
github
Last release
5 years ago

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

  1. Lodash merge function.
  2. IntersectionObserver polyfill
  3. 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 .