@sayhellogmbh/js-scrolloffset

1.0.0 • Public • Published

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.

Package Sidebar

Install

npm i @sayhellogmbh/js-scrolloffset

Weekly Downloads

0

Version

1.0.0

License

GPL-3.0-or-later

Unpacked Size

37 kB

Total Files

4

Last publish

Collaborators

  • nico_martin
  • joelstuedle
  • markhowellsmead