Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If you have a basic image (or text or something else), you can use CSS3 transformations to move it (this is what is used on FoWD's 404 page - a static image transformed using CSS3 transformations). They aren't well supported in many browsers, but you can use it if you know your target supports it. This page shows how to create rotation effects with CSS transformations: <a href="http://davidwalsh.name/css-transform-rotate" rel="nofollow noreferrer">http://davidwalsh.name/css-transform-rotate</a>. Also, this is the code used on FoWD's 404 page to make the image spin:</p> <pre><code>#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); } } </code></pre> <p>So, with a simple HTML page like:</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;meta charset="UTF-8" /&gt; &lt;title&gt;Test Page&lt;/title&gt; &lt;link rel="stylesheet" type="text/css" href="animation.css" /&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="earth" style="text-align: center;"&gt;This content will spin!&lt;/div&gt; &lt;div style="text-align: center;"&gt;This will not :(&lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>If animation.css is the CSS stuff from above, the content of div#earth will spin forever! Then, you can replace the "This content will spin!" with your own stuff. If you want to use it as the background (as in FoWD's 404 page), just add the CSS <code>position: absolute; width: 100%; z-index: -1;</code> so it will appear as the background. Then, you could put your <code>&lt;canvas&gt;</code> stuff inside div#earth and it will spin away. Also, you can adjust <code>-webkit-animation-duration</code> in the CSS file to modify the speed of the animation. <br /><br /><br /> If you can't use CSS3 transformations because of browser support, then it is pretty much impossible to create without animated images or javascript.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload