Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hugeinc/stickynav

Package Overview
Dependencies
Maintainers
2
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hugeinc/stickynav

A simple navigation bar that efficiently attaches / detaches to the top of the viewport upon scrolling

  • 0.5.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

Sticky Nav

A simple navigation bar that efficiently attaches / detaches to the top of the viewport upon scrolling

Introduction

...

Getting Started

Download the production version or the development version.

ES6

import { stickyElement, stickyNav } from '../src/stickynav.es6.js';

CommonJS

var stickyElement = require('../src/stickynav.es6.js').stickyElement;
var stickyNav = require('../src/stickynav.es6.js').stickyNav;

AMD

require(['stickyElement', 'stickyNav'], function(stickyElement, stickyNav){
	// ...
})

Browser

<script src="path/to/stickyNav.js"></script>
<script>
	new stickyNav({
		nav: '#sticky',
		boundedBy: 'main'
	});
</script>

Documentation

...

Support

  • IE8+
  • Safari / Chrome
  • Firefox
  • iOS
  • Android

Known Issues

Examples

Please see the test / demo directory

Release History

0.5

  • Complete rewrite of StickyNav into an ES6 class
  • updating docs to better reflect options

0.4

  • adding offset to allow stickiness that is not necessarily at the top of the viewport

0.3

  • Breaking change: updating bounded to boundedBy
  • Better treatment of bounding element

0.1

  • initial commit

Keywords

FAQs

Package last updated on 04 Aug 2017

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc