From: vincent@cubedesigners.com Date: Tue, 10 Jan 2017 17:51:22 +0000 (+0000) Subject: done #1084 @1 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=12fe4b081ee50acd4365b065be972a4838f6be55;p=fluidbook-v3.git done #1084 @1 --- diff --git a/js/101-header.js b/js/101-header.js index 36c359a..4359601 100644 --- a/js/101-header.js +++ b/js/101-header.js @@ -39,6 +39,7 @@ function setHeaderAnimation() { var h = $('#h'); home = $('body').hasClass('home'); var fullPages = $('body').hasClass('fullpages'); // Are we in full page mode? + var light = $("[data-header-theme='light']").length > 0; if (htl !== undefined) { htl.clear(); @@ -51,6 +52,8 @@ function setHeaderAnimation() { if (home && (isMobile() || !fullPages)) { htl.add(TweenMax.fromTo($("#h,#nav-icon"), 1, {className: $("main section:first").data('headerstyle')}, {className: "-=light"}), 1); + } else if (light) { + htl.add(TweenMax.fromTo($("#h,#nav-icon"), 1, {className: 'light'}, {className: "-=light"}), 1); } if (fullPages && !isMobile()) { htl.add(TweenMax.fromTo(h, 0.75, {backgroundColor: 'transparent', boxShadow: '0 0 0 rgba(0,0,0,0)'}, {backgroundColor: 'transparent', boxShadow: '0 0 0 rgba(0,0,0,0)'}), 0);