Skip to content

It is jquery based plugin. Its light weight as compared to other free plugin available on web.

License

Notifications You must be signed in to change notification settings

nareshnootoo/sticky-headings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sticky Headings

Sticky Headings its jquery based plugin. Its light weight as compared to other free plugin available on web.

How to use

  • Include jQuery lib.
  • Give any specific class to all headings i.e. class="sticky-header"
  • Initialize the plugin as $('.sticky-header').stickyheadings();

How to give offset

$('.sticky-header').stickyheadings({offset:10});

Callback function for each scroll

Second parameter in the arguments acts as the callback function.

$('.sticky-header').stickyheadings({},onscroll);

Callback function after heading got stuck, i.e. onstuck

Second parameter in the arguments acts as the callback function.

$('.sticky-header').stickyheadings({},null, onstuck);

About

It is jquery based plugin. Its light weight as compared to other free plugin available on web.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published