Sha256: c78cfdd8f935ae5870c12cbb19a5b83baaa5c2ccafafdcd9a9477de92cf87019

Contents?: true

Size: 327 Bytes

Versions: 2

Compression:

Stored size: 327 Bytes

Contents

(function() {
  var refillsMenuAnchor = $('.refills-menu-anchor');

  $(window).scroll(function() {
    if ($(this).scrollTop() > 50) {
      refillsMenuAnchor.addClass('refills-menu-anchor-moved');
    } else if ($(this).scrollTop() <= 50) {
      refillsMenuAnchor.removeClass('refills-menu-anchor-moved');
    }
  });
})();

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
refills-0.2.0 source/javascripts/menuAnchorAnimation.js
refills-0.1.0 source/javascripts/menuAnchorAnimation.js