Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add background color on scroll #2

Open
grahamwookie opened this issue Jul 4, 2014 · 3 comments
Open

Add background color on scroll #2

grahamwookie opened this issue Jul 4, 2014 · 3 comments
Labels

Comments

@grahamwookie
Copy link

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

@crnacura
Copy link
Member

crnacura commented Jul 4, 2014

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

@grahamwookie
Copy link
Author

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.

@AndrewMcSwain
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants