Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/informatix8/glue-stick

Stackable sticky elements
https://github.com/informatix8/glue-stick

hc-sticky position-sticky sticky sticky-elements sticky-headers sticky-headings vanilla-javascript vanillajs

Last synced: about 1 month ago
JSON representation

Stackable sticky elements

Awesome Lists containing this project

README

        

# 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

```shell
npm install @informatix8/glue-stick --save-dev
```

### CDN

```html

```

### Vanilla Javascript

```javascript
new GlueStick({
subject: 'aside',
footer: 'footer'
});
```

## Development

```shell
npm run dev
```

## Build

```shell
npm run build
```

## Release

```shell
npm run build
git tag -a vX.Y.Z
git push origin master
git push origin --tags
npm publish --access=public .
```