I would like to add a logo to the top left corner of the nav bar
I have got as far as changing the base.html.twig file to: <header id="header"> <div id="logo"> <h3><a href="{{ base_url == '' ? '/' : base_url }}">{{ pages.find('/images').media['sboc_svg.svg']}} {{ config.site.title }}</a></h3> </div>
But what I would like to know is how to make that logo responsive When scrolling the page and also fitting to the general size of the navbar? Just like the antimatters default site title does?
Thanks for the reply.
I just cant seem to make the logo responsive when scrolling. It moves down but doesn’t resize ( I’m extending the antimatter theme)
This what I am after https://appserver.io
Thank you for your time. I have managed now to get the logo to resize but it does not follow the default animation like the rest of the nav bar in the Antimatter theme.
I’ve been struggling. If anyone could help me out that would be great.
Below is my _header.scss
– remove style on img inline
– set display: inline-block; to #header#logo h3 > a {}
– set max-width: 230px; width: 100%; transition: width 500ms ease; to img without class .scrolled
– set ` .scrolled img { width: 50% }
For the perfect add an ID or class to IMG, like this: <img class="top-logo" src=""> & change .scrolled img { width: 50% } `