非常に軽いjqueryコンテンツスライダーを使用していますが、アニメーションの速度を制御する方法がわかりません。現在は非常に高速で、速度を落とす必要があります。jqueryは私にとって新しい領域であり、いくつかの方法を試しても機能させることができないのではないかと心配しています。どんな助けでも大いに感謝されるでしょう。これが私のコードです:
$(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')
}
});
});
});