Tagged: header, Scrolling, shrinking header
-
AuthorPosts
-
November 29, 2014 at 2:14 pm #360075
In Safari when one is scrolling and reaches end of a page at the top or bottom there is a kind of springy-bounce to stop the scrolling. Because of this springy behavor when one scrolls to the top of an Enfold page very fast, a black bar comes down from the top of the browser window and temporarily covers up the header bar. Also, if ‘Shrinking Header’ is checked under ‘Header Behavior’, the logo also zooms up to about 200% when this happens.
If you are using Safari, you can see this in the Enfold demo here: http://kriesi.at/themes/enfold/
(Or also at http://kriesi.at)Now, I don’t actually mind springy-scrolling part, because I think users have gotten used to it. What bothers me is:
1. That the menu gets covered over for an instant. I think some users will see this as a mistake.
2. The logo zoom might be desired in some cases but definitely not all, so there should be a way to turn this zoom off.I have found an example page that handles the boing nicely (not enfold theme but quite similar). Compare how the header of this website acts when you scroll to the top of the page (in Safari):
http://www.valentino.com/gbIs there a way to tame the boing for issues 1 & 2 above?
~RNovember 30, 2014 at 6:38 pm #360330This boing also causes crashing in Enfold on mobile depending on what short codes are on the page, especially when the icon buttons are live with links. I’d like to know if there is a way to prevent this as well
December 1, 2014 at 3:58 am #360559Hi!
Thank you for using Enfold.
@R: I’m sorry but I can’ reproduce the issue on safari. Can you please provide a screenshot? The simple header switch is intentional because not all users require fancy animation for headers. If you want the animation on the link that you provided, unfortunately, this falls as a custom work and is beyond the scope of support. Please hire a freelance developer to configure the header.
@adwbtody: Please provide a link to the actual page with the issue.
Best regards,
IsmaelDecember 1, 2014 at 3:34 pm #360790This reply has been marked as private.December 1, 2014 at 3:45 pm #360798This reply has been marked as private.December 1, 2014 at 9:18 pm #361049Hey!
I cannot reproduce the issue on Safari 8.0 on OS X 10.10. I can see the effect when you scroll up while at the top of the page but it does not stay covered on my end. Which version of Safari are you using?
Cheers!
YigitDecember 1, 2014 at 10:33 pm #361109Hi Yigit,
Correct, as I said in the original post it temporarily covers up the menu: In other words it doesn’t stay covered. But it should not get covered at all though, even temporarily because it looks like an error.
In my opinion either of these solutions would be an acceptable behavior for the header during the bounce:
A. The menu/header should always be stuck to the top of the browser window, on top of everything, and float above the black bar during the bounce.
-or-
B. The menu/header should bounce with the rest of the page as it does in the Mobile Version (the sceenshot in previous post), so the header bar stays below the black bar that descends from above.~R
- This reply was modified 9 years, 11 months ago by The_Rhyme_Animal.
December 2, 2014 at 4:14 pm #361488Hi!
Please add following code to Quick CSS in Enfold theme options under General Styling tab
#header_main .container, .main_menu ul:first-child > li a { max-height: 88px !important; }
change the value to match the height of your header. If that does not help, please post the link to your website
Cheers!
YigitDecember 2, 2014 at 7:57 pm #361724This reply has been marked as private.December 3, 2014 at 7:23 pm #362400Hey!
Can you please try adding following code to Quick CSS as well
#header, #header > .container, .logo *, .main_menu ul:first-child > li a { max-height: 88px !important; }
Regards,
YigitDecember 3, 2014 at 9:18 pm #362479Are you saying it should be like:
#header_main .container, .main_menu ul:first-child > li a { max-height: 88px !important; } #header, #header > .container, .logo *, .main_menu ul:first-child > li a { max-height: 88px !important; }
Or just:
#header, #header > .container, .logo *, .main_menu ul:first-child > li a { max-height: 88px !important; }
Neither of these permutations work correctly.
Right now I have the former in my Quick CSS.
You can check the site to see the effect.
~R- This reply was modified 9 years, 11 months ago by The_Rhyme_Animal.
December 4, 2014 at 7:31 pm #363161Hey!
Do you mind creating a temporary admin login and posting it here privately?
Best regards,
YigitDecember 5, 2014 at 2:46 pm #363552This reply has been marked as private.December 8, 2014 at 2:48 pm #364623Hey!
I have added custom CSS code to bottom of Quick CSS field and it stops scrolling effect but brakes shrinking header functionality. Please check your website
Cheers!
YigitDecember 8, 2014 at 6:55 pm #364864Sorry, this did not stop the appearance of the black bar during the bounce.
And it is still covering the navigation.I see that your addition does break the shrinking header functionality as you say, but it does not solve any of the issues either.
Couldn’t this be handled with a properly structured z-index style? Just to keep the navigation floating above the black bar?
~R
December 10, 2014 at 10:13 pm #366275Hey!
I have made a comparison with and without following code
body, html { height: 100%; }
First without and after i apply the code and refresh the page – http://youtu.be/sv0p6Hc68VY
Best regards,
YigitFebruary 15, 2015 at 5:34 pm #396415Hi Y’all,
I think I have solved this finally. None of the above CSS fixes worked properly. So I took time and dug through the script to find what was actually causing the “BOING”. The solution is simple and is as follows.In avia.js, replace line 1453:
newH = el_height - st;
with the following:
if(st > 0){ newH = el_height - st; } else { newH = el_height; }
This solves the safari-boing and looks a lot better.
I suggest rolling this small change into future releases of the theme.
(this was tested on Enfold 3.0.8 in Safari 8.0.3 and Firefox 34.0.5)
~R- This reply was modified 9 years, 9 months ago by The_Rhyme_Animal.
February 16, 2015 at 1:20 pm #396682Hi!
Thank you for sharing your workaround. I will let Kriesi know about your post and request :) Let us know if you have any other questions or issues!
Regards,
YigitMarch 10, 2015 at 9:31 pm #409108 -
AuthorPosts
- The topic ‘Controlling the 'BOiNG'’ is closed to new replies.