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

Home Forums JavaScript JQuery horizontal scroll Re: JQuery horizontal scroll


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.