0
How I make this effect softer?
$j(window).scroll(function () { console.log($j(document).scrollTop()); if ($j(document).scrollTop() >= 300) { $j('.logo img').attr('src', 'http://i.imgur.com/499DSOf.png').addClass('logozinho'); $j('.header-container').css({"borderTop":"none";}) } else { $j('.logo img').attr('src', 'http://roupasatacado.dev.bizcommerce.com.br/media/wysiwyg/LOGO/loja-logo_1_.png').removeClass('logozinho'); $j('.header-container').css({"borderTop":"1.5rem solid rgba(67, 67, 67, 0.12)"}); } });
If it were, for example, a toggle effect, it would only put the "speed" in MS that would be good, but in the case of this code, can you make it softer? Switching from one effect to the other...
Which parameter you want to soften?
borderTop
?– Sergio
In this case, everyone there. The SRC exchange, which in this case will change the image, and did not want to leave that business "dry" and the edge too. When adding and removing the edge, also wanted to make it softer.
– Lucas de Carvalho