I have a logo split into three parts. And wan't to make some parts disappear (and reappear) based on scroll. But the animation is acting totally weird (not doing the thing I ask it to – yeah, I know it does. But the logic kind of always goes out the window with this).
(couldn't make codepen, jsfiddle or js bin work due to the scroll ... )
But this SHOULD be fairly simple. Make some part disappear, and have the container move up a bit after a delay, and the reverse ...
let duration = 1;
$window.scroll(function () {
if ( $window.scrollTop()