@emeritus-tech/stickynav

1.0.0 • Public • Published

Stickynav

Instructions

  • Install dependencies - yarn
  • Start the server - yarn start to see a live example
  • Build the library - yarn build distribution files are stored on the root for access facility
  • Enjoy!

Usage

In browsers

<script>
    new stickynav({
        { 
            scrollThreshold: 300, 
            elementClass: 'this-is-sticky', 
            desktopPosition: 'top',
            mobilePosition: 'bottom'
        }
    });
</script>

In node environments

Install

yarn add emeritus-tech/stickynav

Import

js:
    import Stickynav from 'stickynav';

    let stickynav = new Stickynav({
        { 
            scrollThreshold: 300, 
            elementClass: 'this-is-sticky', 
            desktopPosition: 'top',
            mobilePosition: 'bottom'
        }
    });
scss:
    import '~stickynav/stickynav';

Package Sidebar

Install

npm i @emeritus-tech/stickynav

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

66.5 kB

Total Files

21

Last publish

Collaborators

  • isa.ivagnes
  • ilorenzo
  • mzanetticds
  • diegostrattacds
  • jessezepedaocon