Tagged: x
-
AuthorPosts
-
August 27, 2016 at 5:03 am #1149519
Romain65ParticipantHi,
I have codes below for my navbar :
.x-navbar { background: transparent !important; transition: 0.5s all linear; } .x-navbar.x-navbar-fixed-top { transition: 0.5s all linear; background: rgba(0,0,0, 0.7) !important; }Query ( function($) { $(window).scroll( function() { if ( $(this).scrollTop() > 0 ) { $('.x-navbar').addClass( 'x-navbar-fixed-top' ); } else { $('.x-navbar').removeClass( 'x-navbar-fixed-top' ); } } ); } );I want to do the same with the footer. What is the code please ?
Thanks ! Great theme !
August 27, 2016 at 5:04 am #1149520
Romain65ParticipantThis reply has been marked as private.August 27, 2016 at 5:19 am #1149532
Romain65ParticipantIt’s ok with :
x-colophon.bottom { position: fixed; width: 100%; bottom: 0; height: 60px; padding: 2px 0 4px; transition: 0.5s all linear; background: transparent !important; } .x-colophon.bottom.x-colophon-fixed-bottom { transition: 0.5s all linear; background: rgba(0,0,0, 0.7) !important; }jQuery ( function($) { $(window).scroll( function() { if ( $(this).scrollBottom() > 0 ) { $('.x-colophon.bottom').addClass( 'x-colophon-fixed-bottom' ); } else { $('.x-colophon.bottom').removeClass( 'x-colophon-fixed-bottom' ); } } ); } );But no when return at the top… Can you complete the code please ?
Thanks
August 27, 2016 at 5:26 am #1149535
ThaiModeratorHi There,
Please update your custom CSS & JS to this:
jQuery ( function($) { $(window).scroll( function() { if ( $(this).scrollTop() > 0 ) { $('.x-navbar').addClass( 'x-navbar-fixed-top' ); $('.x-colophon.bottom').addClass('x-colophon-fixed'); } else { $('.x-navbar').removeClass( 'x-navbar-fixed-top' ); $('.x-colophon.bottom').removeClass('x-colophon-fixed'); } } ); } );.x-navbar, .x-colophon.bottom { background: transparent !important; transition: 0.5s all linear; } .x-navbar.x-navbar-fixed-top, .x-colophon.bottom.x-colophon-fixed { transition: 0.5s all linear; background: rgba(0,0,0, 0.7) !important; }Hope it helps 🙂
August 27, 2016 at 5:35 am #1149539
Romain65ParticipantYou’re the best… Thank you !
August 27, 2016 at 5:40 am #1149540
LelyModeratorYou’re welcome!
Cheers!
August 27, 2016 at 6:39 am #1149564
Romain65ParticipantSorry, I have an other question : how can I remove this transition effect only on one page ?
August 27, 2016 at 6:42 am #1149566
ThaiModeratorHi There,
Please add the following CSS:
.page-id-123 .x-navbar, .page-id-123 .x-colophon.bottom { transition: none !important }Replace the 123 number with your page ID.
Hope it helps 🙂
August 27, 2016 at 6:42 am #1149567
Romain65ParticipantThis reply has been marked as private.August 27, 2016 at 6:49 am #1149573
ThaiModeratorHi There,
Could you please add the above CSS?
Thanks.
August 27, 2016 at 6:52 am #1149575
Romain65ParticipantYou’re so fast ! Yes, but it doesn’t work…
August 27, 2016 at 6:58 am #1149576
ThaiModeratorHi There,
Please try with this:
.page-id-166 .x-navbar, .page-id-166 .x-colophon.bottom { -moz-transition: none !important; -webkit-transition: none !important; -o-transition: color 0 ease-in !important; transition: none !important; }Let us know how it goes!
August 27, 2016 at 7:03 am #1149580
Romain65ParticipantIt also doesn’t work !
August 27, 2016 at 9:33 am #1149654
Romain65ParticipantThere is no solution ?
August 27, 2016 at 10:30 am #1149702
LelyModeratorHi Romain,
I want to check why the given code is not working, unfortunately, I can’t access your site as of the moment. It is under Maintenance mode. Please do give us credentials so we can check further. Thank you.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1149519 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
