Tagged: x
-
AuthorPosts
-
April 11, 2016 at 8:50 pm #877458
HighTechDadParticipantHello,
I’m trying to accomplish a similar effect to what is seen on this page: http://www.dealer.com/products/advertising/
The top bar navigation is initially transparent but as you scroll past the initial image/slider, the menu become solid (like black or another color).
Is this possible with X and which Options (e.g., Integrity, Ethos, etc.) would you recommend for this?
What would be some CSS I could try for this effect?
Thanks as always.
April 12, 2016 at 5:52 am #878043
ChristopherModeratorHi there,
Please add following code in Customize -> Custom -> JavaScript :
jQuery(document).ready(function($){ $('.x-navbar-fixed-top').addClass("transparent-navbar"); $(window).scroll(function(){ if ($(this).scrollTop() > 50) { $('.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 -> CSS :
@media (min-width:979px){ .white{ background-color:#fff !important; } .transparent-navbar{ background-color:transparent !important; } }Hope it helps.
April 12, 2016 at 10:57 am #878533
HighTechDadParticipantThank you for this! I will test it out. What theme option/config would you recommend to get as close as possible to the dealer.com site?
April 12, 2016 at 11:04 pm #879336
RupokMemberHi there,
You can navigate the various demos here – http://theme.co/x/
Then use the tutorial for demo content https://community.theme.co/kb/demo-content/ to import the look you want.
Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-877458 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
