Naively Programmable Module

    jquery.sticky

    0.2.1 • Public • Published

    jquery.sticky

    Get started

    Install

    $ yarn add jquery.sticky
    

    Load scripts

    <script src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
    <script src="/node_modules/jquery.sticky/dist/jquery.sticky.min.js"></script>
    <link rel="stylesheet" href="/node_modules/jquery.sticky/dist/sticky.css">
    

    Setting

    <script>
    jQuery(function($) {
      $('.sidebar').sticky({
        breakpoint: 1024, // Optional. over 1024px, fired
        offset: 0 // Optional
      });
    });
    </script>
    

    License

    MIT

    Keywords

    none

    Install

    npm i jquery.sticky

    DownloadsWeekly Downloads

    86

    Version

    0.2.1

    License

    MIT

    Last publish

    Collaborators

    • inc2734