From 12fe4b081ee50acd4365b065be972a4838f6be55 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Tue, 10 Jan 2017 17:51:22 +0000 Subject: [PATCH] done #1084 @1 --- js/101-header.js | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.39.5