AnimatedHeader icon indicating copy to clipboard operation
AnimatedHeader copied to clipboard

Add background color on scroll

Open grahamwookie opened this issue 11 years ago • 3 comments

Hello, May I ask how I might add a color background to the menu container once it's scaled and the user is scrolling please?

Thanks

grahamwookie avatar Jul 04 '14 01:07 grahamwookie

You can define that in .cbp-af-header.cbp-af-header-shrink { /* your styles */ } Note that you'll also have to adjust the transition defined in the first rule of .cbp-af-header

Hope it helps. Cheers

crnacura avatar Jul 04 '14 15:07 crnacura

Hi, thanks for your help on background change. I've added it and it's looking good. I will send out a link when our clients site goes live. May I ask if you have considered a feature to fix the following issue please?

When you scroll a long page, the header changes size and sticks to the browser top. If the user refreshes the page the header changes back to the original state. Is there a check I could use so if the user is so many pixels down the page the header stays as it were in the scroll styled header please?

Thanks for your time.

grahamwookie avatar Jul 13 '14 22:07 grahamwookie

i haven't looked at the codebase, but I'm surprised this is an issue. If it still is, i would suggest opening a fresh issue for it.

AndrewMcSwain avatar Dec 26 '16 12:12 AndrewMcSwain