@sayhellogmbh/js-scrolloffset
v1.0.0
Published
jQuery script which watches the window scroll position and adds/removes a CSS class to the HTML object as appropriate.
Downloads
2
Readme
Watch window scroll offset
jQuery script which watches the window scroll position and adds/removes a CSS class to the HTML object as appropriate.
Usage
By including this script, no further action is necessary. The CSS class name
s-has--scrolloffset
will be applied and can be referenced in CSS:
html.s-has--scrolloffset {…}
. The class name convention adheres to BEM
naming conventions: s-has
being the block identifier and --scrolloffset
being the modifier.
Changelog
1.0.0 2019-07-05
- Initial @sayhellogmbh version.