@midiu/sticky

1.0.4 • Public • Published

Sticky

Sticky is a library for sticky elements written in vanilla javascript. With this library you can easily set sticky elements on your website

Installation

npm install --save @midiu/sticky

Usage

new Sticky(document.querySelector('.section-1 .sticky'), {
    containment: document.querySelector('.section-1')
});

Package Sidebar

Install

npm i @midiu/sticky

Weekly Downloads

2

Version

1.0.4

License

MIT

Unpacked Size

11.3 kB

Total Files

7

Last publish

Collaborators

  • vinhtrinh