![Check out Enfold](https://kriesi.at/wp-content/themes/kriesi/images/banner-enfold.jpg)
-
AuthorPosts
-
January 19, 2021 at 2:22 pm #1273715
Hello,
with your header tutorial and forum posts I could archive the need of my client to have a transparent header on mobile and after scroll it turns into a white background header – all that is good.
My client now feels that it is a bug how the white menu bar appears – he does not want the fade-in animation after scroll, instead it should seamleass switch from transparent to visible header in a snap, directly after scroll, no delay.
Can you please help me with a custom css or JS to disable the animation on mobile that animates in the white background header bar instead of the transparent bar?
Here is a video of the current behavior: https://www.horakexecutivesearch.de/RPReplay_Final1611039929.MP4.
Again, the animation after scrolling that shows the white background bar should be gone, it should be shown immediately after scroll without effect.
Thank you very much!
January 19, 2021 at 2:34 pm #1273724Hey,
Please try adding this code to the Quick CSS section under Enfold > General Styling or to your child theme’s style.css file:
CSS Snippet:
.header_bg { -webkit-transition: none; transition: none; }
Best regards,
YigitJanuary 19, 2021 at 2:37 pm #1273726Hello Yigit, Thank you! This works perfect now on desktop – on mobile still the same for me, even without cache.
January 19, 2021 at 2:39 pm #1273728Na, still the same I think. Can you please check? Thank you :)
January 19, 2021 at 3:05 pm #1273735Hi,
It seems like you have removed the code. If you have not, could you please create temporary admin logins and post them here privately so we can look into it? :)
Best regards,
YigitJanuary 19, 2021 at 3:07 pm #1273737Thank you! Credentials are here:
January 19, 2021 at 3:25 pm #1273742Hi,
There were couple of errors in your custom CSS code in media queries. I fixed them and checked once again and confirmed that it is now working fine on mobile as well.
Please review your website :)Best regards,
YigitJanuary 19, 2021 at 3:45 pm #1273748I am sorry, but my collegue was working in Customizer and I guess we have overwritten.
We are OUT now, can you please do it one more time…
SORRY.
January 19, 2021 at 3:48 pm #1273749Maybe you can also please post what you have added? THank you :)
January 19, 2021 at 3:55 pm #1273758Really sorry… Hope you can do it again.
January 19, 2021 at 3:58 pm #1273761Hi,
This time there was 1 error only I fixed it and attached current custom CSS code in private content field :)
Best regards,
YigitJanuary 19, 2021 at 4:12 pm #1273775Thank you very much!
But still, when I scroll on smartphone (or everywhere else), the white header bar comes in with an effect like fade-in but it should show without delay and effevt. Deleted cache
January 19, 2021 at 4:13 pm #1273776It is still like in the attached video. Sorry for the trouble and thank you for your help
January 19, 2021 at 4:25 pm #1273778We are leaving Customizer again now.
January 19, 2021 at 4:36 pm #1273781To be more clear, behaviour of top bar is still as in the video above. After slow scrolling down, the white top bar “fades” in animated. This should be more clean, without animation, just BAMMM – it’s there, directly after scrolling. Thanks
-
This reply was modified 3 years, 5 months ago by
florian.hofmann.
January 19, 2021 at 4:38 pm #1273783Hi,
I checked customizer once again but there is no error. I disabled CSS file merging and compression in Enfold theme options > Performance tab, saved theme options, cleared cache and minified files, enabled CSS file merging and compression and saved theme options again.
Then, I created the screencast I attached in private content field below.
Please make sure to clear cache on your mobile browser as well :)Best regards,
YigitJanuary 19, 2021 at 5:28 pm #1273791Dear Yigit,
Thank you for your effort and help! Very great!
My client just wrote:
“isn’t technically possible to leave the logo/selection icon where it is over the image when scrolling like in the desktop version and only “switch” between the visual modes (transparent to white background)?Right now I think it looks nice, my client does not. He would simply like the same behaviour as on desktop.
Can you please one more time think about a way?
January 19, 2021 at 5:55 pm #1273794On desktop the logo and burger on transparent is NOT moving. This is how my client would like it. So if we could manage to make the logo and burger fixed while scrolling, same as on desktop, it should be fine.
Thank you!
January 19, 2021 at 6:46 pm #1273806Hi,
I changed following code in Customizer
/* Transparent header on mobile */ @media only screen and (max-width: 767px) { #top #wrap_all .av_header_transparency { background: transparent; position: absolute!important; }}
to following one
/* Transparent header on mobile */ @media only screen and (max-width: 767px) { #top #wrap_all .av_header_transparency { background: transparent; }}
Please review your website :)
Best regards,
YigitJanuary 19, 2021 at 6:47 pm #1273807YOU. ARE. AWESOME!
Exactly what I was hoping for.
Thank you and have a great evening!
January 19, 2021 at 7:56 pm #1273820Hi,
You are welcome! :)
For your information, you can take a look at Enfold documentation here – https://kriesi.at/documentation/enfold/
If you have any other questions or issues, feel free to start a new thread under Enfold sub forum and we will gladly try to help you :)
Enjoy the rest of your day!
Best regards,
Yigit -
This reply was modified 3 years, 5 months ago by
-
AuthorPosts
- The topic ‘Please help, remove "animation" on mobile before sticky header’ is closed to new replies.