I’m trying to have a transparent header with a light colored logo, and a sticky menu on scroll with a dark colored logo - but I have no clue on how to get this. I thought the inverse logo option was my saviour, but I can’t see how to use it …
Hi Martin,
If you have defined an inverse logo and using the logo element together with the sticky header option, it changes accordingly.
Take a look here (and please don’t pay attention to how ugly everything looks - the uglier the better to test) using 1.4beta: https://vimeo.com/702957099/96b35adad0
yeap that’s how I use it too. what I normally did on the first website I built is that the main logo contains a lot of green variations and what I did for the inverse logo in photoshop I changed it to a white color logo with a darker background. But im using 1.3.7 version i have not installed the newest versions on it.
New to bricks just lurking a bit in the forum, till this is fixed I figured you could try using css filters to target the logo after scroll. This will of course highly depend on the type of logo you got but wanted to share just in case.
using filter: brightness(0) invert(1); on the bricks logo would look like this:
Personally I always use SVGs for logos so if you’ve got that, you could always change the color of the svg or even individual paths by targeting the svg with the .scrolling class like so:
svg { fill: red;}
.scrolling svg { fill: blue;}
hope it helps someone till the feature is fixed
EDIT: another way would be to create a relative positioned div set to the dimensions of the logo, inside add both logos with position absolute so they are on top of each other. Then just add a css transition and change the opacity of each logo from 0 to 1 and 1 to 0 depending on whether the header has the .scrolling class or not