From: vincent@cubedesigners.com Date: Wed, 31 Aug 2016 10:08:56 +0000 (+0000) Subject: fix #637 @0:10 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=18aa480aef87e70cf0fad9aa9ed274113b6b04e3;p=fluidbook-v3.git fix #637 @0:10 --- diff --git a/js/101-header.js b/js/101-header.js index 12f7562..70cd8a6 100644 --- a/js/101-header.js +++ b/js/101-header.js @@ -28,6 +28,7 @@ function resizeHeader() { $("header").css({'paddingLeft': padding, 'paddingRight': padding}); + setHeaderAnimation(); setTimeout(function () { headerScroll(); }, 100); @@ -65,8 +66,12 @@ function setHeaderAnimation() { var nav = $(h).find('#menu'); htl.add(TweenMax.fromTo(nav, 1.5, {top: 57}, {top: 24}), 0); //Typo logo - htl.add(TweenMax.fromTo($(logo).find('.text'), 1, {autoAlpha:1}, {autoAlpha:0}), 0); - htl.add(TweenMax.fromTo($(logo), 0, {width:220}, {width:32}), 1); + htl.add(TweenMax.fromTo($(logo).find('.text'), 1, {autoAlpha: 1}, {autoAlpha: 0}), 0); + if (!isMobile()) { + htl.add(TweenMax.fromTo($(logo), 0, {width: 220}, {width: 32}), 1); + } else { + htl.add(TweenMax.fromTo($(logo), 0, {width: 220}, {width: 220}), 1); + } // Menu position htl.add(TweenMax.fromTo(nav, 1, {left: '43.5%'}, {left: 312}), 2); diff --git a/less/101-header.less b/less/101-header.less index eb7b323..b2dc3d7 100644 --- a/less/101-header.less +++ b/less/101-header.less @@ -79,6 +79,7 @@ header#h { @media @m900 { display: block; opacity: 1 !important; + visibility: visible !important; } }