@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
#dot {
animation-name: spin;
animation-iteration-count: infinite;
animation-timing-function: linear;
animation-duration: 2.560s;
}
<?xml version="1.0" encoding="UTF-8" ?>
<svg xmlns="http://www.w3.org/2000/svg" width="400px" height="100px">
<circle cx="25" cy="50" r="25" fill="blue" stroke="freeze" stroke-width="1">
<animateMotion path="M 25 0 H 350 Z" dur="2s" repeatCount="indefinite"/>
</circle>
</svg>
// 60 Frames Per Second
var interval = 1000 / 60;
function start() {
//Define initial status
setTimeout(animate, interval);
}
function animate() {
//Change properties
setTimeout(animate, interval);
}
// 60 Frames Per Second
var interval = 1000 / 60;
function start() {
//Define initial status
last = Date.now();
setZeroTimeout(animate);
}
function animate() {
time = Date.now();
if (time >= last + interval) {
//Change properties
last = time;
}
setZeroTimeout(animate);
}
// 60 Frames Per Second
var interval = 1000 / 60;
function start() {
//Define initial status
last = Date.now();
requestAnimationFrame(animate);
}
function animate(time) {
if (time >= last + interval) {
//Change properties
last = time;
}
import java.applet.Applet;
public class nano extends Applet {
public long nanoTime() {
return System.nanoTime();
}
}
partial interface Performance {
DOMHighResTimeStamp now();
};