-
AuthorPosts
-
April 4, 2018 at 10:16 pm #937379
Hej Folks, is there a way the shrinking header won’t cut off the logo? Current settings:
/*Ändert das Logo bei geschrumpftem Header*/
.header-scrolled .logo a img {
visibility: hidden;
}.header-scrolled .logo a {
background: url(https://www.vifsg.de/wp-content/uploads/2017/08/vifsg_header-logo-e1502043394906.png) no-repeat top left;
}/* js/avia.js >> 1565 >> newH = el_height/1.5[2]; */
April 4, 2018 at 10:36 pm #937384why don’t you set up your background to size : contain:
.header-scrolled .logo a { background: url(//www.vifsg.de/wp-content/uploads/2017/08/vifsg_header-logo-e1502043394906.png) no-repeat top left; background-size: contain; }April 5, 2018 at 7:45 am #937526April 5, 2018 at 1:21 pm #937712I also wanted to change the height of the menu. That helped:
js/avia.js >> newH = el_height/2;
to this:
js/avia.js >> newH = el_height/1.5;April 5, 2018 at 2:34 pm #937764! but read this : https://kriesi.at/support/topic/shrinking-of-header-amount-an-info/
there are two values to change ( and only on half size the divisor is 2 on both values !)
April 6, 2018 at 7:37 pm #938363Thanks @guenni007
April 7, 2018 at 8:26 am #938550aha – but there is still a jump in logo change.
your values should be on avia.js:if(st < el_height/3) and a bit down under that value newH = el_height/1.5;81/54 = 1.5
81/(81-54) = 81/27 = 3you can see here a very elegant way with svg instead of png – in this case we can work only with one file ( no substitution ) and on header scrolled option some path of the svg goes to opacity zero:
https://webers-testseite.de/cynthia/-
This reply was modified 7 years, 7 months ago by
Guenni007.
April 7, 2018 at 8:52 am #938564 -
This reply was modified 7 years, 7 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.
