@informatix8/glue-stick

2.1.1 • Public • Published

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 .

Readme

Keywords

none

Package Sidebar

Install

npm i @informatix8/glue-stick

Weekly Downloads

0

Version

2.1.1

License

ISC

Unpacked Size

406 kB

Total Files

90

Last publish

Collaborators

  • informatix8