Ver Mensaje Individual
  #3 (permalink)  
Antiguo 11/09/2013, 14:12
joseehrn
 
Fecha de Ingreso: enero-2013
Mensajes: 6
Antigüedad: 11 años, 3 meses
Puntos: 0
Respuesta: Smooth scrolling horizontal

Cita:
Iniciado por Carlangueitor Ver Mensaje
Si no sabes nada de este lenguaje es muy dificil que puedas modificar algo del script. Sigue buscando algo que ya esté listo.

Saludos
Todos los que funcionan como quiero son vertical y necesito horizontal. Por algo realice este post, a ver si alguno de ustedes me podria echar una mano.

Este el codigo del vertical que me gustaria que fuera horizontal.

Código:
$(document).ready(function(){
	$('a[href^="#"]').on('click',function (e) {
	    e.preventDefault();

	    var target = this.hash,
	    $target = $(target);

	    $('html, body').stop().animate({
	        'scrollTop': $target.offset().top
	    }, 900, 'swing', function () {
	        window.location.hash = target;
	    });
	});
});
HTML
Código:
<a href="#services">Jump to services</a>

<div id="services">

</div>