MCPcopy
hub / github.com/puma/puma-dev / scrollPage

Function scrollPage

docs/js/cbpAnimatedHeader.js:27–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25 }
26
27 function scrollPage() {
28 var sy = scrollY();
29 if ( sy >= changeHeaderOn ) {
30 classie.add( header, 'navbar-shrink' );
31 }
32 else {
33 classie.remove( header, 'navbar-shrink' );
34 }
35 didScroll = false;
36 }
37
38 function scrollY() {
39 return window.pageYOffset || docElem.scrollTop;

Callers

nothing calls this directly

Calls 2

scrollYFunction · 0.85
removeMethod · 0.80

Tested by

no test coverage detected