I am using a very light jquery content slider but have no idea how to control the speed of the animation. It’s currently very fast and I need to slow it down. I’m afraid that jquery is a new area for me and despite trying several ways I can’t get it to work. Any help would be greatly appreiated. Here is my code:
$(document).ready(function (){
$('#button a').click(function(){
var integer = $(this).attr('rel');
$('#myslide .cover').animate({left:-960*(parseInt(integer)-1)})
$('#button a').each(function(){
$(this).removeClass('active');
if($(this).hasClass('button'+integer)){
$(this).addClass('active')
}
});
});
});
http://api.jquery.com/animate/ here the .animate jQuery syntax. 1000ms == 1 second, change the number to taste.