ウェブページに回転画像があります。
リンクは以下のとおりです。
http://equosinfotech.com/testdemo/test.html
すべてが私が望むようにうまく機能します、私は画像の回転速度を遅くしたいのですが、それは速すぎて、それを遅くする方法を見つけることができません。
(ページソースからコードを見ることができます)
回転を遅くするのを手伝ってくれる人が必要です。
私が使用しているjavascript:
var stop = function (){
$("#image").rotate({
angle:0,
animateTo:0,
callback: stop,
easing: function (x,t,b,c,d){ // t: current time, b: begInnIng value, c: change In value, d: duration
return c*(t/d)+b;
}
});
}
$(document).ready(function()
{
rotation();
$("#image").rotate({
bind:
{
mouseover : function() {
stop();
},
mouseout : function() {
rotation();
}
}
});
});
var rotation = function() {
$("#image").rotate({
angle: 0,
animateTo: 360,
callback: rotation,
easing: function(x, t, b, c, d) { // t: current time, b: begInnIng value, c: change In value, d: duration
return c * (t / d) + b;
}
});
}