Answers for "jquery on scroll x pixels"

0

jquery on scroll x pixels

$(document).scroll(function() {
               var value=$(document).scrollTop();

                if ( value >= 1000 ) { /*do this*/; return;}
                if ( value >= 500 ) { /*do this*/; return;}
                if ( value >= 150 ) { /*do this*/; return;}
                if ( value >= 30 ) { /*do this*/; return;}
                /* else */
                /*do this*/
            });
Posted by: Guest on October-26-2020
0

jquery on scroll x pixels

$(document).scroll(function() {

        if ( $(document).scrollTop() >= 1000 ) {
        } else if ( $(document).scrollTop() >= 500 ) {
        } else {
        }
    });
Posted by: Guest on October-26-2020
0

jquery on scroll x pixels

$(document).scroll(function() {
           var value=$(document).scrollTop();/* <== here*/

            if ( value >= 1000 ) {
            } else if ( value >= 500 ) {
            } else {
            }
        });
Posted by: Guest on October-26-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language