[Solved] Creating the same kind of navigation with HTML & jQuery [closed]


The key is: scrollPosition.

The Result you want to achieve is a bit too much to explain every single action you have to take. Here is an example of what you are looking for: FadeIn on scroll

$(document).ready(function() {

    /* Every time the window is scrolled ... */
    $(window).scroll( function(){

        /* Check the location of each desired element */
        $('.hideme').each( function(i){

            var bottom_of_object = $(this).position().top + $(this).outerHeight();
            var bottom_of_window = $(window).scrollTop() + $(window).height();

            /* If the object is completely visible in the window, fade it it */
            if( bottom_of_window > bottom_of_object ){

                $(this).animate({'opacity':'1'},500);

            }

        }); 

    });

});

1

solved Creating the same kind of navigation with HTML & jQuery [closed]