Tagged: x
-
AuthorPosts
-
March 10, 2017 at 3:22 pm #1402340
GFF-FlightParticipanthey there
i want to have a transparent menubar and the revslider behind my bar. when start scrolling menubar should chnage into a white background
and this effect should only occur on ym home page not on subsites
is this possible ?
my site: http://test.geldfuerflug.comthank you
March 11, 2017 at 12:26 am #1402769
ChristopherModeratorHi there,
Please add following code in Customize -> Custom -> Global JavaScript :
jQuery(document).ready(function($){ $('.x-navbar-fixed-top').addClass("transparent-navbar"); $(window).scroll(function(){ if ($(this).scrollTop() > 0) { $('.x-navbar-fixed-top').removeClass("transparent-navbar").addClass("white"); } else { $('.x-navbar-fixed-top').removeClass("white").addClass("transparent-navbar"); } }); });Please add following code in Customize -> Custom -> Global CSS :
@media (min-width:979px){ .home .x-navbar.x-navbar-fixed-top.white { background-color: rgba(255,255,255,0.8); transition: all 0.3s linear; } .home .x-navbar.x-navbar-fixed-top.transparent-navbar { background-color: transparent; border: none; box-shadow: none; transition: all 0.3s linear; } .home header.masthead.masthead-inline { position: absolute; } }Hope that helps.
March 11, 2017 at 4:16 am #1402917
GFF-FlightParticipantalmost… the menu bar is first in the left corn3er when u load the page and goes to the right place after u scroll a little bit.. also the bar is still a lkittle transparent when u scroll and turns not completely white
March 11, 2017 at 4:17 am #1402918
GFF-FlightParticipant
March 11, 2017 at 5:17 am #1402965
ThaiModeratorHey There,
Please also add this CSS:
header.masthead.masthead-inline { width: 100%; }Hope it helps 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1402340 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
