Forums

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

Home Forums JavaScript Tabs Anchor w/ smoothscroll

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

    Hi, I am new to javascript and have a question regarding vertical tabs.

    Currently I am using the code (below) to anchor the user to the top of the tabs section when they click on one towards the bottom of the list. This functionality is working but I was wondering if it is possible to have it scroll smoothly to the top instead of jumping. Any Ideas? Thanks in advance for your help.

     $(".quicktabs-tabs li a").click(function() {
        var tabs_offset = $("#work").offset();
        scrollTo(tabs_offset.left, tabs_offset.top);
      });
    
Viewing 1 post (of 1 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.