Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy doesn't this CSS animation work in IE10?
    primarykey
    data
    text
    <p><a href="http://jsfiddle.net/zFavB/" rel="nofollow">This JSFiddle</a> contains a CSS animation that works for me in Chrome, Firefox and Safari, but not IE 10. I know IE 10 <a href="http://msdn.microsoft.com/en-us/library/windows/apps/hh453858.aspx" rel="nofollow">doesn't</a> <a href="http://msdn.microsoft.com/en-us/library/windows/apps/hh772212.aspx" rel="nofollow">need</a> the <code>-ms-</code> prefix, so that can't be it. I can't see anything wrong with this:</p> <pre><code>@keyframes snapVertical { 0% { background-position: 0 0; } 16% { background-position: 0 0; } 21% { background-position: 0 -136px; } 37% { background-position: 0 -136px; } 42% { background-position: 0 -272px; } 58% { background-position: 0 -272px; } 63% { background-position: 0 -136px; } 79% { background-position: 0 -136px; } 84% { background-position: 0 0; } 100% { background-position: 0 0; } } .animation-snap-vertical { animation: snapVertical 4s cubic-bezier(0.165, 0.840, 0.440, 1.000) 0s infinite; } </code></pre> <p>Why doesn't this work in IE 10?</p> <p><strong>EDIT</strong></p> <p>Why does the horizontal one work, but not the vertical (<a href="http://jsfiddle.net/zFavB/1/" rel="nofollow">fiddle</a>)?</p> <p>Horizontal animation:</p> <pre><code>@keyframes snapHorizontal { 0% { background-position: 0 0; } 16% { background-position: 0 0; } 21% { background-position: -176px 0; } 37% { background-position: -176px 0; } 42% { background-position: -352px 0; } 58% { background-position: -352px 0; } 63% { background-position: -176px 0; } 79% { background-position: -176px 0;} 84% { background-position: 0 0; } 100% { background-position: 0 0; } } .animation-snap-horizontal { animation: snapHorizontal 4s cubic-bezier(0.165, 0.840, 0.440, 1.000) 0s infinite; } </code></pre>
    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