Sha256: 848e7790db2e0aa8c9b0c5eb66337b6bd20fc5e8f8a6a214492da773b4afabeb

Contents?: true

Size: 623 Bytes

Versions: 8

Compression:

Stored size: 623 Bytes

Contents

/**
 * cbpAnimatedHeader.min.js v1.0.0
 * http://www.codrops.com
 *
 * Licensed under the MIT license.
 * http://www.opensource.org/licenses/mit-license.php
 * 
 * Copyright 2013, Codrops
 * http://www.codrops.com
 */
var cbpAnimatedHeader=(function(){var b=document.documentElement,g=document.querySelector(".cbp-af-header"),e=false,a=300;function f(){window.addEventListener("scroll",function(h){if(!e){e=true;setTimeout(d,250)}},false)}function d(){var h=c();if(h>=a){classie.add(g,"cbp-af-header-shrink")}else{classie.remove(g,"cbp-af-header-shrink")}e=false}function c(){return window.pageYOffset||b.scrollTop}f()})();

Version data entries

8 entries across 8 versions & 4 rubygems

Version Path
lunch-and-learn-jekyll-template-0.1.0 assets/js/cbpAnimatedHeader.min.js
lucid-jekyll-theme-0.1.3 assets/js/cbpAnimatedHeader.min.js
lucid-jekyll-theme-0.1.2 assets/js/cbpAnimatedHeader.min.js
lucid-jekyll-theme-0.1.1 assets/js/cbpAnimatedHeader.min.js
lucid-jekyll-theme-0.1.0 assets/js/cbpAnimatedHeader.min.js
theme_importer_rails-0.1.0 test/theme/js/cbpAnimatedHeader.min.js
locomotivecms-3.0.0.pre.alpha.2 spec/fixtures/portfolio/public/javascripts/cbpAnimatedHeader.min.js
locomotivecms-3.0.0.pre.alpha spec/fixtures/portfolio/public/javascripts/cbpAnimatedHeader.min.js