I am trying to create a beginner animation for CSS3. It works in Chrome, Opera and Safari, but does not work in Internet Explorer (11) and Firefox (34.0)
I use the -moz-prefix, but it does not work ... I do not know why.
body{ width:100%; } #center{ width:900px; margin:0 auto; height:800px; display:block; } #center .box{ width:100px; height:100px; background-color:black; margin:0 auto; -webkit-animation: myfirst 5s; animation: myfirst 5s; -moz-animation: myfirst 5s; -webkit-animation-iteration-count: infinite; -moz-animation-iteration-count: infinite; animation-iteration-count: infinite; } @-webkit-keyframes myfirst{ from{backgrond:black;} to{background:yellow;} } @-moz-keyframes myfirst{ from{background:black;} to{background: :yellow;} } @keyframes myfirst { from{background:black;} to{background: :yellow;} }
source share