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

Home Forums JavaScript JQuery horizontal scroll

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #33117

    I’m doing a horizontal scrolling website with JQuery trying to use Ariel Flesslers scrollto plugin, but somehow I can’t make it work?

    I have a nav:

    and three divs wich I want to scroll horizontally:




    It’s really nothing fancy just simple markup, besides including the plugins in the header of the html there must also be a function right? I think this is where I fail, could someone help me and write an example of how this function should be written?


    Thanks guys, I did write an identical function like the one below without sucess before I posted my issue here.

    $('.nav a').click(function(){
    $.scrollTo( $(this).attr('href'), 800, { easing: 'swing' });
    return false;

    The only way this seems to work is when I use a markup like the one below. If I wrap my list inside a div called nav instead things go wrong.

    Thanks Eric I checked your link, that’s exactly how I wanted it to be. Now it acts like it should.

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