1
私はrequesetAnimationFrameでアニメーションを持っています。私はそれを再生すると、それが見えなくなるまで速くて速くなります。JavaScript:requestAnimateFrameがより速くなる
function tirer(){
var missile=document.getElementById("missile");
var currt= missile.currentStyle ||window.getComputedStyle(missile);
if (parseInt(currt.bottom)<700)
missile.style.bottom=parseInt(missile.style.bottom)+20+"px";
else
alert ("in top");
}
function animation(){
tirer();
requestAnimationFrame(animation);
}
どうすれば安定した一定のスピードにすることができますか?
可能な複製の[requestAnimationFrameでのfpsの制御](http://stackoverflow.com/questions/19764018/controlling-fps-with-requestanimationframe) – Li357
yes aswered!ありがとうございました ! – unfoudev