# sticky-header

> pure javascript implementation that makes an element stick to the top when scrolling down the page

Latest version **0.3.0** (published 2016-11-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install sticky-header
pnpm add sticky-header
yarn add sticky-header
bun add sticky-header
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.0 |
| Published | 2016-11-04 |
| First published | 2014-06-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 16 |
| Author | ltebean |
| Maintainers | ltebean |
| Keywords | sticky, header, browser |

## Links

- npm: https://www.npmjs.com/package/sticky-header
- Repository: https://github.com/ltebean/sticky-header
- Issues: https://github.com/ltebean/sticky-header/issues
- npm.io page: https://npm.io/package/sticky-header

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 0.3.0 (latest) — 2016-11-04
- 0.2.1 — 2014-12-01
- 0.1.2 — 2014-12-01
- 0.2.0 — 2014-07-07
- 0.1.1 — 2014-06-18
- 0.1.0 — 2014-06-18

## README

###Usage:

```javascript
// commonjs
var sticky = require('sticky-header');
	
// or directly include the script then 'sticky' will be global
	
var nav = document.getElementById('nav')
// make '.nav' stick to the top
sticky(nav);

// make '.nav' stick to top 100px
sticky(nav, 100);
```

###Example:
	
See http://ltebean.github.io/sticky-header

---
_Source: https://npm.io/package/sticky-header · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
