1.0.0 • Published 6 years ago

@sayhellogmbh/js-scrolloffset v1.0.0

Weekly downloads
-
License
GPL-3.0-or-later
Repository
github
Last release
6 years ago

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.