I am using the following script when i scroll down the page then header have supposed to be changed the color according to script but script is not working I am using that plugin also-:
<script type="text/javascript" src="https://raw.github.com/piouPiouM/jquery-color/master/jquery.color.js"></script>
Here is the script-:
jQuery("#subheader").css("position", "fixed");
jQuery(window).on("scroll",function () {
jQuery("#subheader").stop().animate({
backgroundColor: jQuery(window).scrollTop() > 0 ? '#FFFFFF' : 'rgba(255,255,255,0.0)'
}, 230);
});
#Subheader is the div id of header I am using that plugin also here is my head tag-:
<script src="http://code.jquery.com/color/jquery.color-2.1.2.js" type="text/javascript"></script>
<script type="text/javascript" >
jQuery("#subheader").css("position", "fixed");
jQuery(window).scroll(function() {
jQuery("#subheader").stop().animate({
backgroundColor: jQuery(window).scrollTop() > 0 ? '#FFFFFF' : 'rgba(255,255,255,0.0)'
}, 230);
});
</script>
But still not work
Thanks For help