jquery waypoints - Sticky header with a switch (like Hongkiat) -


i'm creating sticky header using waypoints in tutorial http://www.webtutorialplus.com/sticky-header-on-scroll-jquery/

but how create header 'swaps'?

example: if visit http://www.hongkiat.com/blog/ , scroll down header scrolls, not element visible on page.

is you're looking for?

working demo

$('.showafterthis').waypoint(function() {   if ($(".header2").is(":hidden")) {     $(".header2").slidedown(100);   } else {         $(".header2").slideup(100);     } }); 

Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

java - How to create Table using Apache PDFBox -

mpi - Why is MPI_Bsend not returning error even when the buffer is insufficient to accommodate all the messages -