Hey there,
I’m trying to create a mobile header wich shrinks the logo when scrolling down and I don’t quite understand the sticky function in that matter.
- I’ve set the bar to sticky
- I’ve set the trigger-offset to “10” - but I actually don’t even know what that means. Is that 10px?
If not set it won’t do anything in the sense of shrinking anything, right? - I’ve set the shrink amount to 0.65 (also not sure what the unit here is… - I’m guessing 1 is 100% 0 = 0%?)
Now when I scroll down the header stays on top and after (I guess) the trigger amount it slides in from the top.
What doesn’t happen: the logo doesn’t shrink. It only shrinks when I set the shrinking amount at about 0.5.
I honestly don’t understand what is happening there and why it doesn’t start to shrink at … let’s say 0.8, too.
Next problem is that when I scroll up the Header slides out of the screen and then back in …
Is there a way to have the logo shrink when scrolling down without any trigger-amount?
I just want to scroll down and then have the logo shrink and when I scroll back up it grows bigger.
I don’t want the header to slide in our out in any way.
I hope I could explain it correctly. I will post my login credentials in a secure postand maybe you can have a look?
Thx,
Phil