Hi,
I need to know if it is possible to create an effect with a logo shrinking/changing when scrolling down the page?
Do you mean a sticky nav or gradually shrinking at any breakpoint?
Like this?
This was made in Blocs easy enough.
The nav uses a class .sticky on the nav when it sticks, combine that with navbar-brand img and you should be able to target and adjust with a custom class.
Add a class (.sticky .navbar-brand img) via the class manager (keep spaces) then set the width and height via the class editor.
.sticky .navbar-brand img
Is it accurate custom class name I have to add?
And where exectly should I apply that custom class? Apply to the nav bloc?
Already roger that by myself Thanks, Norm!
How would this effect work with Blocs 3 and Bootstrap 4?
Is there a vage chance to include this behaviour in the navbar settings of blocs (e.g “sticky” + “shrink logo on scroll”) ?
In WP it´s easy with elementor + a few code snippets.
Thanks and have a great day