Thanks for posting in! To achieve what you have in mind, please do the following:
1.) Edit the page in Cornerstone and in the custom js section, Custom JS and insert the following custom js code
Thank you! It’s working, but I have a few questions:
Is it possible to add the JS on the entire site, so that I don’t have to add to on every single page? I managed to do it for the CSS, but not for the JS.
How can I add a smooth effect so that the size of the logo and the height of the navbar reduce continuingly? It currently changes at once and this is not so nice.
Yes, it’s more recommended. You can add it into CSS and JS section of Theme Options.
Tried with CSS transition but it’s not working, since you’re adding and removing the class that instantly remove the styling instead of gradually changing it. I recommend applying the transition through custom javascript which we can’t further provide. You may enhance it as well, the provided snippet should serve as a guide and sample.