Header background on scroll - but not the second time

Hi there.

In my header I have added a white background layer that is triggered upon scroll. It does appear as expected - but only the first time I scroll. The second time I scroll from the top it doesn’t trigger the background. What have I done wrong?

Login credentials in the secure note.

Thanks.

Hey @nblund,

The Shrink Amount of your Bar 1 and Bar 2 should be 1. The rule of thumb for the Shrink Amount is if you don’t need bar shrinking, don’t modify the default value which is 1. Setting it to 0 disrupts the calculations of the sticky bar.

image

I tested it to be sure. Your header now works.

Hope that helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.