Note that there are some explanatory texts on larger screens.

plurals
  1. POUse background image and apply CSS animations over the top of it
    primarykey
    data
    text
    <p>I've created a fiddle, but I dont think its displaying correctly. <a href="http://jsfiddle.net/kVNQb/" rel="nofollow">http://jsfiddle.net/kVNQb/</a> but it might be useful to view the code anyway.</p> <p>I'm using a CSS animation to create snow from this site <a href="http://cssdeck.com/labs/css3-snow" rel="nofollow">http://cssdeck.com/labs/css3-snow</a></p> <p>What I'd like to do is set a background image and then have the snow animate over the top of this. At the moment I lose either the animated snow or the background image.</p> <p>Do i need to create a id and set the image I want as a background to that?</p> <p>HTML code</p> <pre><code>&lt;body&gt; &lt;div class="row"&gt; &lt;div class="large-12 columns"&gt; &lt;div id="container"&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/body&gt; </code></pre> <p>CSS code</p> <pre><code>/*Custom CSS styles being used on top of the standard Foundation 4 style sheet*/ fixed.body { background-image: url(http://s17.postimg.org/9htu61zjj/background.jpg); } * { 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: #b4cfe0 } 100% { background-position: 500px 1000px, 400px 400px, 300px 300px; background-color: #6b92b9; } } @-ms-keyframes snow { 0% { background-position: 0px 0px, 0px 0px, 0px 0px } 100% { background-position: 500px 1000px, 400px 400px, 300px 300px } } /*body { background-color: #6b92b9; 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; }*/ #container { width: 800px; margin: 200px auto; text-align: center; color: white; font: 100px/1 'Spirax', cursive; text-shadow: 0px 0px 4px rgba(0,0,0, 0.5); } #container p { font: 12px/1.5 "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif } </code></pre>
    singulars
    1. This table or related slice is empty.
    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.
 

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