sticky-kit icon indicating copy to clipboard operation
sticky-kit copied to clipboard

sticky kit destroy on top

Open janmense opened this issue 8 years ago • 0 comments

hey there,

my header sticks to the top of the page if i scroll down. stickykit adds the .is_stuck class correctly if i scroll, but it dont destroy if scroll back to top.

the code: $(".header").stick_in_parent();

i tried this:

$(".header").stick_in_parent();
    if ($(this).scrollTop() === 0){  
		$('.header').removeClass("is_stuck");
	}

but this doesnt work.

can somebody help me with that?

janmense avatar Feb 16 '17 09:02 janmense