@midiu/sticky
v1.0.4
Published
A lightweight vanilla javascript for creating sticky elements pinned to the page or to a container element
Downloads
17
Maintainers
Readme
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')
});