stickybits
Advanced tools
Comparing version 1.4.4 to 1.5.0
/** | ||
* 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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40924
10
746
234