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:
const hr = new Headroom(element, {
classes: {
pinned: "first-class second-class",
unpinned: "third-class fourth-class"
}
});
hr.init();