Tagged: x
-
AuthorPosts
-
January 18, 2017 at 12:16 pm #1335394
ZerotoOneParticipanthey there I’d like to make the grey line in my navbar to disappear on scroll
http://prntscr.com/dxazxdmy page is http://www.zerotoone.de
January 18, 2017 at 12:18 pm #1335399
ZerotoOneParticipantThis reply has been marked as private.January 18, 2017 at 1:10 pm #1335465
JoaoModeratorPlease update your Appereance > customizer > Custom > Javascript to:
jQuery(document).ready(function($){ $('.x-navbar-fixed-top, .x-navbar').css("background-color", "transparent"); var rev_height = $("#inici").height(); $(window).scroll(function(){ if ($(this).scrollTop() > rev_height) { $('.x-navbar, .x-navbar-fixed-top').attr('style','background-color: rgba(46,46,46,0.8) !important'); } else { $('.x-navbar, .x-navbar-fixed-top').attr('style','background-color: transparent !important; border: 0;'); } }); });Hope it helps
Joao
January 18, 2017 at 1:48 pm #1335523
ZerotoOneParticipantthank you, but it is now the other way round, the line is displayed on scroll and disappeares when you are on the top of the page
January 18, 2017 at 4:38 pm #1335761
JadeModeratorHi there,
Please try this:
jQuery(document).ready(function($){ $('.x-navbar-fixed-top, .x-navbar').css("background-color", "transparent"); var rev_height = $("#inici").height(); $(window).scroll(function(){ if ($(this).scrollTop() > rev_height) { $('.x-navbar, .x-navbar-fixed-top').attr('style','background-color: rgba(46,46,46,0.8) !important; border: 0;'); } else { $('.x-navbar, .x-navbar-fixed-top').attr('style','background-color: transparent !important; '); } }); });Hope this helps.
January 19, 2017 at 2:09 am #1336331
ZerotoOneParticipantthank you this is good. 🙂 but could you please have a look at the site and confirm what I see? it looks like the grey line changes its color, once you scroll back to the top :/ can you see how it kind of flashes?
January 19, 2017 at 3:09 am #1336390
Rue NelModeratorHello There,
Thanks for updating in! To get rid of the flashing border in your navbar, please remove this line from your custom css
.x-navbar { transition: 0.5s all linear; }Hope this helps. Kindly let us know.
January 19, 2017 at 3:58 am #1336443
ZerotoOneParticipantthank you, is there a way to get rid of the flashing border, without missing the transition effect of the navbars color?
January 19, 2017 at 9:47 am #1336769
LelyModeratorHi There,
We have to remove the bottom border then.
Please update this custom CSS:body .x-navbar { border-bottom: 0.5px solid rgba(255,255,255,0.1); }With this:
body .x-navbar { border-bottom: none !important; }Hope this helps.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1335394 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
