Note that there are some explanatory texts on larger screens.

plurals
  1. POrefresh css animation multiple times
    primarykey
    data
    text
    <p>I have this really complex animation that runs once and I can not use "animation-iteration-count: infinite;" to reiterate it multiple times. Is there another way to do this? For example refreshing the div will refresh the animation? (how do you refresh a div?)</p> <p>this is the html:</p> <pre><code>&lt;div id="hold"&gt; &lt;p id="myname" class="small-caps"&gt; &lt;span id="layer0Go" class="drag"&gt;w&lt;/span&gt; &lt;span id="layer1Go" class="drag"&gt;w&lt;/span&gt; &lt;span id="layer2Go" class="drag"&gt;w&lt;/span&gt; &lt;span id="layer3Go" class="drag"&gt;m&lt;/span&gt; &lt;span id="layer4Go" class="drag"&gt;e&lt;/span&gt; &lt;span id="layer5Go" class="drag"&gt;s&lt;/span&gt; &lt;span id="layer6Go" class="drag"&gt;s&lt;/span&gt; &lt;span id="layer7Go" class="drag"&gt;a&lt;/span&gt; &lt;span id="layer8Go" class="drag"&gt;g&lt;/span&gt; &lt;span id="layer9Go" class="drag"&gt;e&lt;/span&gt; &lt;span id="layer10Go" class="drag"&gt;l&lt;/span&gt; &lt;span id="layer11Go" class="drag"&gt;a&lt;/span&gt; &lt;span id="layer12Go" class="drag"&gt;b&lt;/span&gt; &lt;span id="layer13Go" class="drag"&gt;r&lt;/span&gt; &lt;span id="layer14Go" class="drag"&gt;o&lt;/span&gt; &lt;span id="layer15Go" class="drag ball"&gt;&lt;/span&gt; &lt;/p&gt; &lt;/div&gt; </code></pre> <p>some of the css: </p> <pre><code>#layer0Go{ -webkit-animation: a0-translate 5s linear 0s 1 none, b0-translate 5s linear 5s 1 none, c0-translate 1.5s linear 10s 1 none, d0-translate 5s linear 11.5s 1 none, v0-translate 7s linear 16.5s 1 forwards; </code></pre> <p>The same css for all layers.</p> <p>If I put animation-iteration-count: infinite; to #hold it does nothing. Of course if I put it to layer0Go it will repeat the first animation infinitely without running the other animations. They are some animated letters changed from this project here: <a href="https://developer.mozilla.org/pt-PT/demos/detail/css-tricks" rel="nofollow">https://developer.mozilla.org/pt-PT/demos/detail/css-tricks</a> Any ideas? I made a fiddle: <a href="http://jsfiddle.net/2AnEJ/" rel="nofollow">http://jsfiddle.net/2AnEJ/</a></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.
 

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