You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

stacky.js

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stacky.js

Stacking scrolling navigation, modern alternative to Slinky.js without no dependencies

1.0.2
Source
npmnpm
Version published
Weekly downloads
1
-50%
Maintainers
1
Weekly downloads
 
Created
Source

Stacky.js

Create beautiful scrolling driven navigation lists with stacking headers that remain visible at all times. No dependency required - just pure JavaScript!

Getting Started

npm

npm install stacky.js

Example

A minimal HTML structure for Stacky to work with can look something like this:

<main>
  <nav>
    <section>
      <header class="stacky">First header</header>
      <p>Some content</p>
    </section>
    <section>
      <header class="stacky">Second header</header>
      <ul>
        <li>First item</li>
        <li>Second item</li>
      </ul>
    </section>
    <!-- More sections here -->
  </nav>
</main>

Credits

Original jQuery plugin: Slinky.js

Keywords

sticky

FAQs

Package last updated on 30 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts