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? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -