├── .babelrc ├── .circleci └── config.yml ├── .editorconfig ├── .eslintignore ├── .eslintrc.json ├── .github ├── CONTRIBUTING.md ├── ISSUE_TEMPLATE.md └── PULL_REQUEST_TEMPLATE.md ├── .gitignore ├── .markdownlintrc ├── .npmignore ├── .nvmrc ├── CHANGELOG.md ├── CODEOWNERS ├── CODE_OF_CONDUCT.md ├── LICENSE ├── README.md ├── configs ├── config.js └── rollup.config.js ├── dist ├── jquery.stickybits.js ├── jquery.stickybits.min.js ├── stickybits.es.js ├── stickybits.js ├── stickybits.min.js └── umbrella.stickybits.js ├── jsconfig.json ├── package.json ├── renovate.json ├── scripts └── acceptance.js ├── src ├── jquery.stickybits.js ├── stickybits.js └── umbrella.stickybits.js ├── tests ├── .eslintrc.json ├── acceptance │ ├── bottom │ │ ├── index.html │ │ └── test.js │ ├── cleanup │ │ ├── index.html │ │ └── test.js │ ├── monitoring │ │ ├── index.html │ │ └── test.js │ ├── multiple-sticky-classes │ │ ├── index.html │ │ └── test.js │ ├── multiple │ │ ├── index.html │ │ └── test.js │ ├── offset │ │ ├── index.html │ │ └── test.js │ ├── scrollTo │ │ ├── index.html │ │ └── test.js │ ├── stacked │ │ ├── index.html │ │ └── test.js │ ├── test.css │ ├── update │ │ ├── index.html │ │ └── test.js │ └── use-fixed │ │ ├── index.html │ │ └── test.js └── unit │ └── test.stickybits.js ├── types └── index.d.ts └── yarn.lock /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ 3 | ["@babel/preset-env", { 4 | "loose": true, 5 | "targets": { 6 | "browsers": [ 7 | "defaults", 8 | "ie >= 9" 9 | ] 10 | } 11 | }] 12 | ], 13 | } 14 | -------------------------------------------------------------------------------- /.circleci/config.yml: -------------------------------------------------------------------------------- 1 | defaults: &defaults 2 | working_directory: ~/code 3 | docker: 4 | - image: circleci/node:12 5 | environment: 6 | NPM_CONFIG_LOGLEVEL: error # make npm commands less noisy 7 | JOBS: max # https://gist.github.com/ralphtheninja/f7c45bdee00784b41fed 8 | 9 | restore_cache: &restore_cache 10 | restore_cache: 11 | keys: 12 | - code-{{ .Branch }}-{{ checksum ".nvmrc" }}-{{ checksum "yarn.lock" }} 13 | 14 | save_cache: &save_cache 15 | save_cache: 16 | key: code-{{ .Branch }}-{{ checksum ".nvmrc" }}-{{ checksum "yarn.lock" }} 17 | paths: 18 | - node_modules 19 | 20 | version: 2 21 | jobs: 22 | build: 23 | <<: *defaults 24 | steps: 25 | - checkout 26 | - *restore_cache 27 | - run: yarn 28 | - run: yarn build 29 | - *save_cache 30 | lint: 31 | <<: *defaults 32 | steps: 33 | - checkout 34 | - *restore_cache 35 | - run: yarn lint:ci 36 | test: 37 | <<: *defaults 38 | steps: 39 | - checkout 40 | - *restore_cache 41 | - run: yarn test 42 | 43 | workflows: 44 | version: 2 45 | all: 46 | jobs: 47 | - build 48 | - lint: 49 | requires: 50 | - build 51 | - test: 52 | requires: 53 | - build 54 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # EditorConfig helps developers define and maintain consistent 2 | # coding styles between different editors and IDEs 3 | # editorconfig.org 4 | 5 | root = true 6 | 7 | 8 | [*] 9 | end_of_line = lf 10 | charset = utf-8 11 | trim_trailing_whitespace = true 12 | insert_final_newline = true 13 | indent_style = space 14 | indent_size = 2 15 | 16 | [*.js] 17 | indent_style = space 18 | indent_size = 2 19 | 20 | [*.hbs] 21 | insert_final_newline = false 22 | indent_style = space 23 | indent_size = 2 24 | 25 | [*.css] 26 | indent_style = space 27 | indent_size = 2 28 | 29 | [*.html] 30 | indent_style = space 31 | indent_size = 2 32 | 33 | [*.{diff,md}] 34 | trim_trailing_whitespace = false 35 | -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | dist/* 2 | tests/* 3 | node_modules/* 4 | coverage/* 5 | -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "dollarshaveclub", 3 | "env": { 4 | "browser": true, 5 | "node": true 6 | }, 7 | "globals": { 8 | "document": true, 9 | "expect": true, 10 | "window": true 11 | }, 12 | "rules": { 13 | "indent": 1, 14 | "semi": [2, "never"] 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /.github/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributor Covenant Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | In the interest of fostering an open and welcoming environment, we as 6 | contributors and maintainers pledge to making participation in our project and 7 | our community a harassment-free experience for everyone, regardless of age, body 8 | size, disability, ethnicity, sex characteristics, gender identity and expression, 9 | level of experience, education, socio-economic status, nationality, personal 10 | appearance, race, religion, or sexual identity and orientation. 11 | 12 | ## Our Standards 13 | 14 | Examples of behavior that contributes to creating a positive environment 15 | include: 16 | 17 | * Using welcoming and inclusive language 18 | * Being respectful of differing viewpoints and experiences 19 | * Accepting constructive criticism 20 | * Focusing on what is best for the community 21 | * Showing empathy towards other community members 22 | 23 | Examples of unacceptable behavior by participants include: 24 | 25 | * The use of sexualized language or imagery and unwelcome sexual attention or 26 | advances 27 | * Trolling, insulting/derogatory comments, and personal or political attacks 28 | * Public or private harassment 29 | * Publishing others' private information, such as a physical or electronic 30 | address, without explicit permission 31 | * Other conduct which could reasonably be considered inappropriate in a 32 | professional setting 33 | 34 | ## Our Responsibilities 35 | 36 | Project maintainers are responsible for clarifying the standards of acceptable 37 | behavior and are expected to take appropriate and fair corrective action in 38 | response to any instances of unacceptable behavior. 39 | 40 | Project maintainers have the right and responsibility to remove, edit, or 41 | reject comments, commits, code, wiki edits, issues, and other contributions 42 | that are not aligned to this Code of Conduct, or to ban temporarily or 43 | permanently any contributor for other behaviors that they deem inappropriate, 44 | threatening, offensive, or harmful. 45 | 46 | ## Scope 47 | 48 | This Code of Conduct applies both within project spaces and in public spaces 49 | when an individual is representing the project or its community. Examples of 50 | representing a project or community include using an official project e-mail 51 | address, posting via an official social media account, or acting as an appointed 52 | representative at an online or offline event. Representation of a project may be 53 | further defined and clarified by project maintainers. 54 | 55 | ## Enforcement 56 | 57 | Instances of abusive, harassing, or otherwise unacceptable behavior may be 58 | reported by contacting the project team at [INSERT EMAIL ADDRESS]. All 59 | complaints will be reviewed and investigated and will result in a response that 60 | is deemed necessary and appropriate to the circumstances. The project team is 61 | obligated to maintain confidentiality with regard to the reporter of an incident. 62 | Further details of specific enforcement policies may be posted separately. 63 | 64 | Project maintainers who do not follow or enforce the Code of Conduct in good 65 | faith may face temporary or permanent repercussions as determined by other 66 | members of the project's leadership. 67 | 68 | ## Attribution 69 | 70 | This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org), version 1.4, available at [Contributor Covenant, Code of Conduct](https://www.contributor-covenant.org/version/1/4/code-of-conduct.html) 71 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | ## Requested Update 2 | 3 | ## Why Is This Update Needed? 4 | 5 | ## Are There Examples Of This Requested Update Elsewhere? 6 | 7 | > Read about references issues [here](https://help.github.com/articles/closing-issues-using-keywords/). Provide paragraph text responses to each header. 8 | -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | ## Fixes 2 | 3 | - Fixes # 4 | 5 | ## Proposed Changes 6 | 7 | - Change 8 | 9 | ---- 10 | 11 | > Read about referenced issues [here](https://help.github.com/articles/closing-issues-using-keywords/). Replace words with this Pull Request's context. 12 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | bower_components/* 2 | node_modules/* 3 | .tags 4 | .tags1 5 | .DS_Store 6 | tests/.DS_Store 7 | .nyc_output/ 8 | coverage 9 | coverage/ 10 | coverage.lcov 11 | coverage_*/ 12 | tmp 13 | .idea 14 | npm-debug.log 15 | package-lock.json 16 | -------------------------------------------------------------------------------- /.markdownlintrc: -------------------------------------------------------------------------------- 1 | { 2 | "default": true, 3 | "MD007": { 4 | "indent": 2 5 | }, 6 | "line-length": false, 7 | "first-line-h1": false, 8 | "first-header-h1": false, 9 | "no-duplicate-header": false, 10 | "no-inline-html": false, 11 | "no-hard-tabs": false, 12 | "single-h1": false, 13 | "whitespace": false 14 | } 15 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | 12 2 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## [3.7.4](https://github.com/dollarshaveclub/stickybits/compare/3.7.3...3.7.4) (2020-02-18) 2 | 3 | 4 | ### fix 5 | 6 | * fixes issue with not window scroll issue (#660) ([f8de58c1dea01c56ecd4a6f50f03f90303eff6ca](https://github.com/dollarshaveclub/stickybits/commit/f8de58c1dea01c56ecd4a6f50f03f90303eff6ca)), closes [#660](https://github.com/dollarshaveclub/stickybits/issues/660) 7 | 8 | ### version 9 | 10 | * patch version bump (#659) ([07831c50f667e2926811dc08218f65b368d30efc](https://github.com/dollarshaveclub/stickybits/commit/07831c50f667e2926811dc08218f65b368d30efc)), closes [#659](https://github.com/dollarshaveclub/stickybits/issues/659) 11 | 12 | 13 | 14 | ## [3.7.3](https://github.com/dollarshaveclub/stickybits/compare/3.7.2...3.7.3) (2020-01-13) 15 | 16 | 17 | 18 | 19 | ## [3.7.2](https://github.com/dollarshaveclub/stickybits/compare/3.7.1...3.7.2) (2019-12-18) 20 | 21 | 22 | 23 | 24 | ## [3.7.1](https://github.com/dollarshaveclub/stickybits/compare/3.7.0...3.7.1) (2019-12-05) 25 | 26 | 27 | 28 | 29 | # [3.7.0](https://github.com/dollarshaveclub/stickybits/compare/3.6.8...3.7.0) (2019-11-08) 30 | 31 | 32 | 33 | 34 | ## [3.6.8](https://github.com/dollarshaveclub/stickybits/compare/3.6.7...3.6.8) (2019-11-05) 35 | 36 | 37 | 38 | 39 | ## [3.6.7](https://github.com/dollarshaveclub/stickybits/compare/3.6.6...3.6.7) (2019-08-26) 40 | 41 | 42 | 43 | 44 | ## [3.6.6](https://github.com/dollarshaveclub/stickybits/compare/3.6.5...3.6.6) (2019-05-17) 45 | 46 | 47 | 48 | 49 | ## [3.6.5](https://github.com/dollarshaveclub/stickybits/compare/3.6.4...3.6.5) (2019-03-31) 50 | 51 | 52 | 53 | 54 | ## [3.6.4](https://github.com/dollarshaveclub/stickybits/compare/3.6.3...3.6.4) (2019-03-03) 55 | 56 | 57 | 58 | 59 | ## [3.6.3](https://github.com/dollarshaveclub/stickybits/compare/3.6.2...3.6.3) (2019-03-03) 60 | 61 | 62 | 63 | 64 | ## [3.6.2](https://github.com/dollarshaveclub/stickybits/compare/3.6.1...3.6.2) (2019-02-20) 65 | 66 | 67 | 68 | 69 | ## [3.6.1](https://github.com/dollarshaveclub/stickybits/compare/3.6.0...3.6.1) (2018-12-27) 70 | 71 | 72 | 73 | 74 | # [3.6.0](https://github.com/dollarshaveclub/stickybits/compare/3.5.8...3.6.0) (2018-12-26) 75 | 76 | 77 | 78 | 79 | ## [3.5.8](https://github.com/dollarshaveclub/stickybits/compare/3.5.7...3.5.8) (2018-11-30) 80 | 81 | 82 | 83 | 84 | ## [3.5.7](https://github.com/dollarshaveclub/stickybits/compare/3.5.6...3.5.7) (2018-10-17) 85 | 86 | 87 | 88 | 89 | ## [3.5.6](https://github.com/dollarshaveclub/stickybits/compare/3.5.5...3.5.6) (2018-10-04) 90 | 91 | 92 | 93 | 94 | ## [3.5.5](https://github.com/dollarshaveclub/stickybits/compare/3.5.4...3.5.5) (2018-09-13) 95 | 96 | 97 | 98 | 99 | ## [3.5.4](https://github.com/dollarshaveclub/stickybits/compare/3.5.3...3.5.4) (2018-09-08) 100 | 101 | 102 | 103 | 104 | ## [3.5.3](https://github.com/dollarshaveclub/stickybits/compare/3.5.2...3.5.3) (2018-08-29) 105 | 106 | 107 | 108 | 109 | ## [3.5.2](https://github.com/dollarshaveclub/stickybits/compare/3.5.1...3.5.2) (2018-08-26) 110 | 111 | 112 | 113 | 114 | ## [3.5.1](https://github.com/dollarshaveclub/stickybits/compare/3.5.0...3.5.1) (2018-08-25) 115 | 116 | 117 | 118 | 119 | # [3.5.0](https://github.com/dollarshaveclub/stickybits/compare/3.4.1...3.5.0) (2018-08-25) 120 | 121 | 122 | 123 | 124 | ## [3.4.1](https://github.com/dollarshaveclub/stickybits/compare/3.4.0...3.4.1) (2018-06-30) 125 | 126 | 127 | 128 | 129 | # [3.4.0](https://github.com/dollarshaveclub/stickybits/compare/3.3.7...3.4.0) (2018-06-28) 130 | 131 | 132 | 133 | 134 | ## [3.3.7](https://github.com/dollarshaveclub/stickybits/compare/3.3.5...3.3.7) (2018-06-19) 135 | 136 | 137 | 138 | 139 | ## [3.3.5](https://github.com/dollarshaveclub/stickybits/compare/3.3.2...3.3.5) (2018-06-14) 140 | 141 | 142 | 143 | 144 | ## [3.3.2](https://github.com/dollarshaveclub/stickybits/compare/3.3.1...3.3.2) (2018-05-05) 145 | 146 | 147 | 148 | 149 | ## [3.3.1](https://github.com/dollarshaveclub/stickybits/compare/3.3.0...3.3.1) (2018-04-29) 150 | 151 | 152 | 153 | 154 | # [3.3.0](https://github.com/dollarshaveclub/stickybits/compare/3.2.4...3.3.0) (2018-04-25) 155 | 156 | 157 | 158 | 159 | ## [3.2.4](https://github.com/dollarshaveclub/stickybits/compare/3.2.3...3.2.4) (2018-04-18) 160 | 161 | 162 | ### tests 163 | 164 | * use npm ci (#279) ([5050a5727110e71b6991245f2e2dcaa5b583d039](https://github.com/dollarshaveclub/stickybits/commit/5050a5727110e71b6991245f2e2dcaa5b583d039)), closes [#279](https://github.com/dollarshaveclub/stickybits/issues/279) 165 | 166 | 167 | 168 | ## [3.2.3](https://github.com/dollarshaveclub/stickybits/compare/3.2.0...3.2.3) (2018-04-10) 169 | 170 | 171 | 172 | 173 | # [3.2.0](https://github.com/dollarshaveclub/stickybits/compare/3.1.1...3.2.0) (2018-03-08) 174 | 175 | 176 | 177 | 178 | ## [3.1.1](https://github.com/dollarshaveclub/stickybits/compare/3.1.0...3.1.1) (2018-02-26) 179 | 180 | 181 | 182 | 183 | # [3.1.0](https://github.com/dollarshaveclub/stickybits/compare/3.0.5...3.1.0) (2018-02-25) 184 | 185 | 186 | 187 | 188 | ## [3.0.5](https://github.com/dollarshaveclub/stickybits/compare/3.0.4...3.0.5) (2018-02-25) 189 | 190 | 191 | 192 | 193 | ## [3.0.4](https://github.com/dollarshaveclub/stickybits/compare/3.0.3...3.0.4) (2018-02-13) 194 | 195 | 196 | 197 | 198 | ## [3.0.3](https://github.com/dollarshaveclub/stickybits/compare/3.0.1...3.0.3) (2018-02-13) 199 | 200 | 201 | 202 | 203 | ## [3.0.1](https://github.com/dollarshaveclub/stickybits/compare/3.0.0...3.0.1) (2018-01-31) 204 | 205 | 206 | 207 | 208 | # [3.0.0](https://github.com/dollarshaveclub/stickybits/compare/2.1.2...3.0.0) (2018-01-31) 209 | 210 | 211 | 212 | 213 | ## [2.1.2](https://github.com/dollarshaveclub/stickybits/compare/2.1.1...2.1.2) (2018-01-24) 214 | 215 | 216 | 217 | 218 | ## [2.1.1](https://github.com/dollarshaveclub/stickybits/compare/2.0.13...2.1.1) (2018-01-16) 219 | 220 | 221 | 222 | 223 | ## [2.0.13](https://github.com/dollarshaveclub/stickybits/compare/2.0.10...2.0.13) (2017-12-06) 224 | 225 | 226 | 227 | 228 | ## [2.0.10](https://github.com/dollarshaveclub/stickybits/compare/2.0.9...2.0.10) (2017-11-09) 229 | 230 | 231 | 232 | 233 | ## [2.0.9](https://github.com/dollarshaveclub/stickybits/compare/2.0.8...2.0.9) (2017-10-31) 234 | 235 | 236 | 237 | 238 | ## [2.0.8](https://github.com/dollarshaveclub/stickybits/compare/2.0.7...2.0.8) (2017-10-21) 239 | 240 | 241 | 242 | 243 | ## [2.0.7](https://github.com/dollarshaveclub/stickybits/compare/2.0.6...2.0.7) (2017-10-20) 244 | 245 | 246 | 247 | 248 | ## [2.0.6](https://github.com/dollarshaveclub/stickybits/compare/2.0.4...2.0.6) (2017-10-17) 249 | 250 | 251 | 252 | 253 | ## [2.0.4](https://github.com/dollarshaveclub/stickybits/compare/2.0.3...2.0.4) (2017-10-10) 254 | 255 | 256 | 257 | 258 | ## [2.0.3](https://github.com/dollarshaveclub/stickybits/compare/2.0.2...2.0.3) (2017-10-06) 259 | 260 | 261 | 262 | 263 | ## [2.0.2](https://github.com/dollarshaveclub/stickybits/compare/2.0.1...2.0.2) (2017-10-02) 264 | 265 | 266 | 267 | 268 | ## [2.0.1](https://github.com/dollarshaveclub/stickybits/compare/1.5.3...2.0.1) (2017-09-29) 269 | 270 | 271 | 272 | 273 | ## [1.5.3](https://github.com/dollarshaveclub/stickybits/compare/1.5.2...1.5.3) (2017-08-06) 274 | 275 | 276 | 277 | 278 | ## [1.5.2](https://github.com/dollarshaveclub/stickybits/compare/1.5.0...1.5.2) (2017-08-02) 279 | 280 | 281 | 282 | 283 | # [1.5.0](https://github.com/dollarshaveclub/stickybits/compare/1.4.4...1.5.0) (2017-07-25) 284 | 285 | 286 | 287 | 288 | ## [1.4.4](https://github.com/dollarshaveclub/stickybits/compare/1.3.12...1.4.4) (2017-07-25) 289 | 290 | 291 | 292 | 293 | ## [1.3.12](https://github.com/dollarshaveclub/stickybits/compare/1.3.10...1.3.12) (2017-07-17) 294 | 295 | 296 | 297 | 298 | ## [1.3.10](https://github.com/dollarshaveclub/stickybits/compare/1.3.8...1.3.10) (2017-07-15) 299 | 300 | 301 | 302 | 303 | ## [1.3.8](https://github.com/dollarshaveclub/stickybits/compare/1.3.5...1.3.8) (2017-07-04) 304 | 305 | 306 | 307 | 308 | ## [1.2.10](https://github.com/dollarshaveclub/stickybits/compare/1.2.8...1.2.10) (2017-05-22) 309 | 310 | 311 | 312 | 313 | ## [1.2.8](https://github.com/dollarshaveclub/stickybits/compare/1.2.7...1.2.8) (2017-04-20) 314 | 315 | 316 | 317 | 318 | ## [1.2.7](https://github.com/dollarshaveclub/stickybits/compare/1.2.6...1.2.7) (2017-04-19) 319 | 320 | 321 | 322 | 323 | ## [1.2.6](https://github.com/dollarshaveclub/stickybits/compare/1.2.5...1.2.6) (2017-04-19) 324 | 325 | 326 | 327 | 328 | ## [1.2.5](https://github.com/dollarshaveclub/stickybits/compare/1.2.4...1.2.5) (2017-04-19) 329 | 330 | 331 | 332 | 333 | ## [1.2.4](https://github.com/dollarshaveclub/stickybits/compare/1.2.3...1.2.4) (2017-04-19) 334 | 335 | 336 | 337 | 338 | ## [1.2.3](https://github.com/dollarshaveclub/stickybits/compare/1.1.3...1.2.3) (2017-04-19) 339 | 340 | 341 | 342 | 343 | ## [1.1.3](https://github.com/dollarshaveclub/stickybits/compare/1.1.2...1.1.3) (2017-04-07) 344 | 345 | 346 | 347 | 348 | ## [1.1.2](https://github.com/dollarshaveclub/stickybits/compare/1.0.2...1.1.2) (2017-04-01) 349 | 350 | 351 | 352 | 353 | ## [1.0.2](https://github.com/dollarshaveclub/stickybits/compare/1.0.1...1.0.2) (2017-03-28) 354 | 355 | 356 | 357 | 358 | ## [1.0.1](https://github.com/dollarshaveclub/stickybits/compare/1.0.0...1.0.1) (2017-03-24) 359 | 360 | 361 | 362 | 363 | # [1.0.0](https://github.com/dollarshaveclub/stickybits/compare/0.0.4...1.0.0) (2017-03-23) 364 | 365 | 366 | 367 | 368 | ## [0.0.4](https://github.com/dollarshaveclub/stickybits/compare/0.0.3...0.0.4) (2017-02-27) 369 | 370 | 371 | 372 | 373 | ## [0.0.3](https://github.com/dollarshaveclub/stickybits/compare/0.0.2...0.0.3) (2017-02-22) 374 | 375 | 376 | 377 | 378 | ## 0.0.2 (2017-02-22) 379 | 380 | 381 | 382 | 383 | -------------------------------------------------------------------------------- /CODEOWNERS: -------------------------------------------------------------------------------- 1 | # Stickybits owners 2 | # ---- 3 | * @yowainwright 4 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Contributor Covenant Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | In the interest of fostering an open and welcoming environment, we as 6 | contributors and maintainers pledge to making participation in our project and 7 | our community a harassment-free experience for everyone, regardless of age, body 8 | size, disability, ethnicity, sex characteristics, gender identity and expression, 9 | level of experience, education, socio-economic status, nationality, personal 10 | appearance, race, religion, or sexual identity and orientation. 11 | 12 | ## Our Standards 13 | 14 | Examples of behavior that contributes to creating a positive environment 15 | include: 16 | 17 | * Using welcoming and inclusive language 18 | * Being respectful of differing viewpoints and experiences 19 | * Accepting constructive criticism 20 | * Focusing on what is best for the community 21 | * Showing empathy towards other community members 22 | 23 | Examples of unacceptable behavior by participants include: 24 | 25 | * The use of sexualized language or imagery and unwelcome sexual attention or 26 | advances 27 | * Trolling, insulting/derogatory comments, and personal or political attacks 28 | * Public or private harassment 29 | * Publishing others' private information, such as a physical or electronic 30 | address, without explicit permission 31 | * Other conduct which could reasonably be considered inappropriate in a 32 | professional setting 33 | 34 | ## Our Responsibilities 35 | 36 | Project maintainers are responsible for clarifying the standards of acceptable 37 | behavior and are expected to take appropriate and fair corrective action in 38 | response to any instances of unacceptable behavior. 39 | 40 | Project maintainers have the right and responsibility to remove, edit, or 41 | reject comments, commits, code, wiki edits, issues, and other contributions 42 | that are not aligned to this Code of Conduct, or to ban temporarily or 43 | permanently any contributor for other behaviors that they deem inappropriate, 44 | threatening, offensive, or harmful. 45 | 46 | ## Scope 47 | 48 | This Code of Conduct applies both within project spaces and in public spaces 49 | when an individual is representing the project or its community. Examples of 50 | representing a project or community include using an official project e-mail 51 | address, posting via an official social media account, or acting as an appointed 52 | representative at an online or offline event. Representation of a project may be 53 | further defined and clarified by project maintainers. 54 | 55 | ## Enforcement 56 | 57 | Instances of abusive, harassing, or otherwise unacceptable behavior may be 58 | reported by contacting the project team at [INSERT EMAIL ADDRESS]. All 59 | complaints will be reviewed and investigated and will result in a response that 60 | is deemed necessary and appropriate to the circumstances. The project team is 61 | obligated to maintain confidentiality with regard to the reporter of an incident. 62 | Further details of specific enforcement policies may be posted separately. 63 | 64 | Project maintainers who do not follow or enforce the Code of Conduct in good 65 | faith may face temporary or permanent repercussions as determined by other 66 | members of the project's leadership. 67 | 68 | ## Attribution 69 | 70 | This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org), version 1.4, available at [Contributor Covenant, Code of Conduct](https://www.contributor-covenant.org/version/1/4/code-of-conduct.html) 71 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2016 Dollar Shave Club, Inc. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |
⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️
2 |3 | 4 | This software is maintained under a new repository located at yowainwright/stickybits 5 | 6 |
7 |⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️
8 | 9 | *** 10 | 11 |
12 |
13 |
Make things get sticky …in a good way
15 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
53 | Installation 54 | Setup 55 | Usage 56 | Feature 57 | Options 58 | Examples 59 | Debugging 60 | Notes 61 | Contributing 62 | Wiki 63 |
64 | 65 | ---- 66 | 67 | ## Installing from a package manager 68 | 69 | yarn 70 | 71 | ```sh 72 | 73 | yarn add stickybits 74 | 75 | ``` 76 | 77 | npm 78 | 79 | ```sh 80 | 81 | npm i stickybits 82 | 83 | ``` 84 | 85 | ## Setup 86 | 87 | Add **dist/stickybits.min.js** 88 | 89 | Or as a module with `import stickybits from 'stickybits'` 90 | 91 |useStickyClasses
FeatureChild '+ num +'
Child '+ num +'
Child '+ num +'
Child '+ num +'
Child '+ num +'
Child '+ num +'
Child '+ num +'
Child '+ num +'
Child ' + num + '
Child ' + num + '