WickyNilliams/headroom.js
### [`v0.12.0`](https://togithub.com/WickyNilliams/headroom.js/compare/v0.11.0...v0.12.0)
[Compare Source](https://togithub.com/WickyNilliams/headroom.js/compare/v0.11.0...v0.12.0)
### [`v0.11.0`](https://togithub.com/WickyNilliams/headroom.js/releases/tag/v0.11.0)
[Compare Source](https://togithub.com/WickyNilliams/headroom.js/compare/v0.10.4...v0.11.0)
This release adds support for multiple classes. This can be of particular use when using atomic CSS classes.
To use, pass a string with a space-separated list of classes in your options:
```js
const hr = new Headroom(element, {
classes: {
pinned: "first-class second-class",
unpinned: "third-class fourth-class"
}
});
hr.init();
```
### [`v0.10.4`](https://togithub.com/WickyNilliams/headroom.js/releases/tag/v0.10.4)
[Compare Source](https://togithub.com/WickyNilliams/headroom.js/compare/v0.10.3...v0.10.4)
This release fixes a bug where classes such as `top` were not added when Headroom is initialised, only after the user first scrolls.
### [`v0.10.3`](https://togithub.com/WickyNilliams/headroom.js/releases/tag/v0.10.3)
[Compare Source](https://togithub.com/WickyNilliams/headroom.js/compare/v0.10.2...v0.10.3)
This release contains a breaking change for IE11, with the introduction of `Object.assign`.
Please be aware this needs to be polyfilled if you wish to support IE11. Alternatively, you can wrap your initialisation code in a condition to avoid instantiation on unsupported browsers:
```js
if(Headroom.cutsTheMustard) {
// initialise headroom
}
```
### [`v0.10.2`](https://togithub.com/WickyNilliams/headroom.js/compare/v0.10.0...v0.10.2)
[Compare Source](https://togithub.com/WickyNilliams/headroom.js/compare/v0.10.0...v0.10.2)
### [`v0.10.0`](https://togithub.com/WickyNilliams/headroom.js/compare/v0.9.4...v0.10.0)
[Compare Source](https://togithub.com/WickyNilliams/headroom.js/compare/v0.9.4...v0.10.0)
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, click this checkbox.
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
0.9.4
->0.12.0
Release Notes
WickyNilliams/headroom.js
### [`v0.12.0`](https://togithub.com/WickyNilliams/headroom.js/compare/v0.11.0...v0.12.0) [Compare Source](https://togithub.com/WickyNilliams/headroom.js/compare/v0.11.0...v0.12.0) ### [`v0.11.0`](https://togithub.com/WickyNilliams/headroom.js/releases/tag/v0.11.0) [Compare Source](https://togithub.com/WickyNilliams/headroom.js/compare/v0.10.4...v0.11.0) This release adds support for multiple classes. This can be of particular use when using atomic CSS classes. To use, pass a string with a space-separated list of classes in your options: ```js const hr = new Headroom(element, { classes: { pinned: "first-class second-class", unpinned: "third-class fourth-class" } }); hr.init(); ``` ### [`v0.10.4`](https://togithub.com/WickyNilliams/headroom.js/releases/tag/v0.10.4) [Compare Source](https://togithub.com/WickyNilliams/headroom.js/compare/v0.10.3...v0.10.4) This release fixes a bug where classes such as `top` were not added when Headroom is initialised, only after the user first scrolls. ### [`v0.10.3`](https://togithub.com/WickyNilliams/headroom.js/releases/tag/v0.10.3) [Compare Source](https://togithub.com/WickyNilliams/headroom.js/compare/v0.10.2...v0.10.3) This release contains a breaking change for IE11, with the introduction of `Object.assign`. Please be aware this needs to be polyfilled if you wish to support IE11. Alternatively, you can wrap your initialisation code in a condition to avoid instantiation on unsupported browsers: ```js if(Headroom.cutsTheMustard) { // initialise headroom } ``` ### [`v0.10.2`](https://togithub.com/WickyNilliams/headroom.js/compare/v0.10.0...v0.10.2) [Compare Source](https://togithub.com/WickyNilliams/headroom.js/compare/v0.10.0...v0.10.2) ### [`v0.10.0`](https://togithub.com/WickyNilliams/headroom.js/compare/v0.9.4...v0.10.0) [Compare Source](https://togithub.com/WickyNilliams/headroom.js/compare/v0.9.4...v0.10.0)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.