I have text that I want to change for the logo when the user scrolls past a specific point. I already have this job
https://jsfiddle.net/ybh22msj/
The problem is that it just replaces two elements. Actually I need a nice animation. Perhaps the logo appears on top and pushes the text. I am not sure how to achieve this.
Javascript
$(document).on('scroll', function() {
if($(window).scrollTop()> 200) {
$('#logo2').show();
$('#logo1').hide();
}
else {
$('#logo2').hide();
$('#logo1').show();
}
});
source
share