Skip to content

emeritus-tech/stickynav

Repository files navigation

Stickynav

Instructions

  • Install dependencies - yarn
  • Start the server - yarn start to see a live example
  • Build the library - yarn build
  • 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';

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published