# dollarshaveclub/stickybits

Stickybits is a lightweight alternative to `position: sticky` polyfills 🍬

Repository: https://github.com/dollarshaveclub/stickybits
Canonical: https://ross.abutalabs.com/products/stickybits
Homepage: https://github.com/yowainwright/stickybits
Language: JavaScript
License: MIT
License Family: permissive
Topics: sticky, stickyposition, fixed, scroll, fixedposition, sticky-elements, stickyheader
Archived: true
Last push: 2020-03-26T18:38:01+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3599, "days_push": 2351, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2158, forks 159 (observed 2026-08-28T04:06:19.856555+00:00)

## What it is
Stickybits is a tiny (~1kb, zero-dependency) JavaScript library that makes elements stick vertically on scroll, serving as a lightweight alternative to position: sticky polyfills. It adds CSS classes like .js-is-sticky and .js-is-stuck when elements become sticky or stuck, and prefers native position: sticky when supported.

## Use cases
- make a header stick to the top of the page on scroll
- sticky sidebar navigation while scrolling
- avoid jumpiness of position: fixed based plugins
- add CSS classes when an element becomes stuck
- cross-browser sticky element behavior without heavy polyfills

## When to choose
- you need sticky elements with a tiny footprint and no dependencies
- you want CSS class hooks for sticky/stuck states
- you need consistent sticky behavior across older browsers

## When to avoid
- you only target modern browsers that fully support position: sticky
- you need complex scroll-driven animations or parallax effects
- the project is in maintenance mode and moved to yowainwright/stickybits

## Facets
- artifact type: library
- maturity: maintenance
- function: ui-components, animation
- domain: frontend, web-development
- platform: browser
- tags: sticky-position, scroll, sticky-header, css-classes, zero-dependency, javascript

## Member repositories
- dollarshaveclub/stickybits (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:19.856555+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:50:22.220376+00:00, confidence not recorded.
  - readme: https://github.com/dollarshaveclub/stickybits (fetched 2026-08-28T04:06:19.856555+00:00, sha 791cb99223d4)
  - homepage: https://github.com/yowainwright/stickybits (fetched 2026-08-29T10:30:35.719785+00:00, sha ff5f50c1f165)
- Data as of 2026-08-30T08:39:29.467469+00:00.
