If you have a main image (or text or something else), you can use CSS3 transforms to move it (this is what is used on the FoWD 404 page - a static image converted using CSS3 transforms). They are not well supported in many browsers, but you can use them if you know that your target supports it. This page shows how to create rotation effects with CSS transformations: http://davidwalsh.name/css-transform-rotate . Also, this is the code used on the FoWD 404 page to make the image rotate:
#earth {
-webkit-animation-name: earthRotation;
-webkit-animation-iteration-count: infinite;
-webkit-animation-timing-function: linear;
-webkit-animation-duration: 500s;
}
@-webkit-keyframes earthRotation {
from {
-webkit-transform: rotate(0deg);
}
to {
-webkit-transform: rotate(360deg);
}
}
So with a simple HTML page, for example:
<html>
<head>
<meta charset="UTF-8" />
<title>Test Page</title>
<link rel="stylesheet" type="text/css" href="animation.css" />
</head>
<body>
<div id="earth" style="text-align: center;">This content will spin!</div>
<div style="text-align: center;">This will not :(</div>
</body>
</html>
animation.css - CSS , div # earth ! " !" . ( FoWD 404), CSS position: absolute; width: 100%; z-index: -1;, . <canvas> div # earth, . , -webkit-animation-duration CSS, .
CSS3 - , javascript.