I want to make the logo fade in while scroll goes down. For example;
if scroll position is 10px:
-opacity of logo is 0.1
if scroll position is 100px:
-opacity of logo is 1.0
$(window).scroll(function() {
var st=$(window).scrollTop();
$('.logo-min').animate({opacity: st});
});
this code doesn't work. It does not have errors but logo's opacity is always changing whether im not changing the scroll pixel