Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript page scrolling is not working properly

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #151478
    vaklove
    Participant

    Hi
    i was doing page scrolling using jquery.

        $(function () {
            $('ul.nav a').bind('click', function (event) {
                var $anchor = $(this);
    
                $('html, body').stop().animate({
                    scrollTop: $($anchor.attr('href')).offset().top
                }, 1500, 'easeInOutExpo');
                /*
                if you don't want to use the easing effects:
                $('html, body').stop().animate({
                scrollTop: $($anchor.attr('href')).offset().top
                }, 1000);
                */
                event.preventDefault();
            });
        });
    

    here is my website link below

    http://webplatform.riseofit.com/

    div is not scrolling until navigation bar.
    Please help me.

    Thanks
    Vik Shah

Viewing 1 post (of 1 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.