Skip to content

altipla-consulting/scroll-floater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scroll-floater

Float an element when the scroll touches it.

Docs

Simple usage:

let floater = new altipla.ScrollFloater(document.querySelector('#foo'));

Limit to a parent container:

let floater = new altipla.ScrollFloater(document.querySelector('#foo'), 0, document.querySelector('#container'));

Other options and methods see the source docs directly.

Contributing

You can make pull requests or create issues in GitHub.

License

MIT License