Skip to content
This repository has been archived by the owner on Mar 19, 2023. It is now read-only.
/ sticky Public archive

Make element sticky depending on other elements

License

Notifications You must be signed in to change notification settings

wearejust/sticky

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sticky

Installation

npm install @wearejust/sticky --save

Usage

require('@wearejust/sticky');

$(function() {
    $('.sticky').sticky();
});

With options

require('@wearejust/sticky');

$(function() {
    $('.sticky').sticky({
        active: 'is-active',
        topHeightOffset: 0
    });
});

About

Make element sticky depending on other elements

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published