내 웹 페이지에서 회전하는 이미지가 있습니다.
링크는 다음과 같습니다 :자바 스크립트로 이미지 회전
http://equosinfotech.com/testdemo/test.html
모든 것이 내가 원하는대로 잘 작동, 난 그냥 그 너무 빨리 이미지의 회전 속도를 느리게하고 싶은 나는 그것을 느리게 할 수있는 방법을 찾을 수 없습니다입니다 하위.
난 그냥 회전 속도를 느리게하는 데 도움이 할 사람이 필요합니다 (당신은 페이지의 소스 코드를 볼 수 있습니다). 내가 사용하고
자바 스크립트 :
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;
}
});
}
관련 코드 및 마크 업 **을 질문 자체에 포함 시키십시오. ** 링크 만하지 마십시오. 이유 : http://meta.stackexchange.com/questions/118392/add-stack-overfow-faq-entry-or-similar-for-putting-code-in-the-question –