Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>In this case the trick is to set the background-color to transparent in both the div and in the animation frames. Fiddle: <a href="http://jsfiddle.net/f92gB/" rel="nofollow">http://jsfiddle.net/f92gB/</a></p> <p>HTML:</p> <pre><code>&lt;body&gt; &lt;div id="container"&gt;&lt;/div&gt; &lt;/body&gt; </code></pre> <p>CSS:</p> <pre><code>* { margin: 0; padding: 0; } a { color: white; font-style: italic; } /*Keyframes*/ @keyframes snow { 0% { background-position: 0px 0px, 0px 0px, 0px 0px } 100% { background-position: 500px 1000px, 400px 400px, 300px 300px } } @-moz-keyframes snow { 0% { background-position: 0px 0px, 0px 0px, 0px 0px } 100% { background-position: 500px 1000px, 400px 400px, 300px 300px } } @-webkit-keyframes snow { 0% { background-position: 0px 0px, 0px 0px, 0px 0px } 50% { background-color: transparent } 100% { background-position: 500px 1000px, 400px 400px, 300px 300px; background-color: transparent; } } @-ms-keyframes snow { 0% { background-position: 0px 0px, 0px 0px, 0px 0px } 100% { background-position: 500px 1000px, 400px 400px, 300px 300px } } body { background-image: url("http://s17.postimg.org/9htu61zjj/background.jpg"); background-size: cover; height: 500px; } #container { height:500px; margin: 0; text-align: center; color: white; font: 100px/1 'Spirax', cursive; text-shadow: 0px 0px 4px rgba(0,0,0, 0.5); background-color: transparent; background-image: url('http://img138.imageshack.us/img138/5230/snowh.png'), url('http://img594.imageshack.us/img594/9146/snow3q.png'), url('http://img196.imageshack.us/img196/5065/snow2l.png'); -webkit-animation: snow 20s linear infinite; -moz-animation: snow 20s linear infinite; -ms-animation: snow 20s linear infinite; animation: snow 20s linear infinite; } </code></pre>
 

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