Synchronise colour change in navbar with background
-
I am currently working on a site where the About page will have a different background colour, navbar and site title. Please see links below:
Homepage
http://foolscap-editions.com/homepageAbout page
http://foolscap-editions.com/aboutSo when you transition between the two pages currently the background colour of the nav bar fades in quicker than the background of the page so feels slightly clunky. Is there a way to avoid this / synchronise?
Currently I am using the following code:
/* navbar colour about page*/
body[data-type="page"][data-id="333"] .navbar{
background-color: #f28000 !important;
}/* site title text colour about page*/
body[data-type="page"][data-id="333"] ._Bold {
color: #ffffff !important;
}/* menu text colour about page*/
body[data-type="page"][data-id="333"] ._Default{
color: #ffffff !important;
} -
Did you try adding a
transition: ease-in-out 1s;and play around with the time?
Here’s more info about transitions. -
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login