Skip to content

jQuery plugin to make buttons stick to the top of the page as user scrolls down

License

Notifications You must be signed in to change notification settings

sekny/jquery-sticky-buttons

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jQuery StickyButtons

A jQuery plugin for making buttons stick to the top of the page when user scrolls down a page so that the buttons are always visible.

A typical usecase

when a user scrolls down a page to fill in a long form with details, the action buttons such as save and cancel get stuck to the top of the page so that the user doesn't need to scroll back to the top again to click on them.

Such behaviour is observed in administration panel of Magento installation.

Usage

    $("form > button").stickybuttons(options);
    

Available options with their default values

    var options = {
        menuBg: '#2c2c2c',
        menuHeight: '20px;',
        menuPadding: '5px 1%',
        menuBtnMargin: '10px'
    };
    

There are no external dependencies other than jQuery.

About

jQuery plugin to make buttons stick to the top of the page as user scrolls down

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%