Hello!
Through the forum I’ve found the following JQuery script to help me change my Brand/Logo image on a scroll event:
-----start-----
jQuery(function($) {
$(window).scroll(function() {
if($(’.x-navbar’).hasClass(‘x-navbar-fixed-top’)) {
$(’.x-navbar-fixed-top .x-brand img ‘).attr(‘src’,’/web/scroll-image.jpg’);
}else{
$(’.x-navbar .x-brand img’).attr(‘src’,’/web/original-image.jpg’);
}
});
});
-----end-----
This code seems to work flawlessly, but I’d like to see about making a simple fade our for the original logo and a fade in for the logo that appears when the page is scrolled.
URL is http://comdoc.cerebral-marketing.com
Any help is greatly appreciated!
Thanks!