The code below works, but #wrapperone justs pops up on the screen.. is there a way to get it to fade in?
jQuery(window).load(function(){
function fixDiv() {
var jQuerydiv = jQuery("#wrapperone");
if (jQuery(window).scrollTop() > jQuerydiv.data("top")) {
jQuery('#wrapperone').css({'position': 'fixed', 'top': '0', 'width': '100%', 'background': 'rgba(255,255,255,0.1)'});
}
else {
jQuery('#wrapperone').css({'position': 'static', 'top': 'auto', 'width': '100%', 'background': 'transparent'});
}
}
jQuery("#wrapperone").data("top", jQuery("#wrapperone").offset().top);
jQuery(window).scroll(fixDiv);
});
Try playing with the opacity and using the fadeIn feature of jQuery.