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

stickybits

Package Overview
Dependencies
Maintainers
1
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stickybits - npm Package Compare versions

Comparing version 1.4.4 to 1.5.0

dist/stickybits.es.js

2

dist/jquery.stickybits.min.js
/**
* stickybits - Stickybits is a lightweight alternative to `position: sticky` polyfills
* @version v1.4.4
* @version v1.5.0
* @link https://github.com/dollarshaveclub/stickybits#readme

@@ -5,0 +5,0 @@ * @author Jeff Wainwright <jjwainwright2@gmail.com>

/**
* stickybits - Stickybits is a lightweight alternative to `position: sticky` polyfills
* @version v1.4.4
* @version v1.5.0
* @link https://github.com/dollarshaveclub/stickybits#readme

@@ -5,0 +5,0 @@ * @author Jeff Wainwright <jjwainwright2@gmail.com>

{
"name": "stickybits",
"version": "1.4.4",
"version": "1.5.0",
"description": "Stickybits is a lightweight alternative to `position: sticky` polyfills",

@@ -30,4 +30,5 @@ "main": "dist/stickybits.js",

"lint": "eslint .",
"rollup": "rollup -c --environment entry:stickybits && rollup -c --environment entry:jquery.stickybits",
"build": "rollup -c --environment entry:stickybits && rollup -c --environment entry:jquery.stickybits && gulp",
"rollup:umd": "rollup -c --environment entry:stickybits,format:umd; rollup -c --environment entry:jquery.stickybits,format:umd",
"rollup:es": "rollup -c --environment entry:stickybits,format:es",
"build": "npm run rollup:umd; npm run rollup:es && gulp",
"postpublish": "git tag $npm_package_version && git push origin --tags"

@@ -34,0 +35,0 @@ },

@@ -64,4 +64,6 @@ <p align="center">

Add **dist/stickybits.min.js**.
Add **dist/stickybits.min.js**
Or as a module with `import shave from 'shave'`
<h2 id="usage">Basic Usage</h2>

@@ -157,3 +159,2 @@

- [Custom vertical top offset](https://codepen.io/yowainwright/pen/YQZPqR) ie: `stickybits('selector', {stickyBitStickyOffset: 20})`
- [Custom vertical position](http://codepen.io/yowainwright/pen/e32cc7b82907ed9715a0a482ffa57596) ie: `stickybits('selector', {customVerticalPosition: true})`
- [UseStickyClasses](http://codepen.io/yowainwright/pen/NpzPGR) ie: `stickybits('selector', {useStickyClasses: true})`

@@ -164,2 +165,9 @@ - [ScrollEl](https://codepen.io/yowainwright/pen/EXzJeb) ie: `stickybits('selector', {scrollEl: document.querySelectorAll('a-custom-scroll-el')})`

----
### Examples extended
- [Custom vertical position (at bottom of parent element)](http://codepen.io/yowainwright/pen/e32cc7b82907ed9715a0a482ffa57596)
- If you have Stickybits examples, please submit an [issue](https://github.com/dollarshaveclub/stickybits/issues) with a link to it. 🙏
-----

@@ -166,0 +174,0 @@

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