1.0.4 • Published 5 years ago

@midiu/sticky v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

npm.io npm.io npm.io npm.io

npm.io npm.io npm.io

npm.io npm.io npm.io npm.io

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')
});