#control {
高度:100px;
🎜>
<script></script>
e = document.getElementById(e);
} // 間隔= 間隔|| 800;
var originalStyle = e.style.cssText;
e.style.position = "relative" > e.style.position = "relative"
animate();
function animate()
{
var elapsed = now - start;
if (進度 {
4);
e.style.left = x "px";
console.log(e.style.cssText); 設定逾時(animate, Math.min(25, elapsed));
} // 結束if
e.style.cssText = OriginalStyle;
{
onComplete(e);
} // 結束 else
} // 結束 animate()
} // 結束 shake()