速度を落とそうとしているアニメーションがありますが、これまでのところ成功していません。持続時間と最後に時間を追加しようとしましたが、アニメーションは同じ速度で実行されているようです。
どんな助けでも素晴らしいでしょう。
$("document").ready(function(){
// Change the width of the div
var i = 0;
$(".progress-bar span").animate({
width: "100%"
},
{step: function(){
//console.log( "width: ", i++ );
console.log($(this).width());
},
complete : function(){
console.log("finished");
}
},2000);
});
ここでフィドルを参照してくださいhttp://jsfiddle.net/Jrand/8jXDK/2/