用户:Yingxxxx/common.css
来自Limbo Wiki
div { width:200px; height:200px; background:white; animation:myfirst 3s; -moz-animation:myfirst 3s; /* Firefox */ -webkit-animation:myfirst 3s; /* Safari and Chrome */ -o-animation:myfirst 3s; /* Opera */ } @keyframes myfirst { 0% {background:red;} 20%{background:yellow;} 40% {background:blue;} 80%{background:green;} 100%{background:white;} } @-moz-keyframes myfirst /* Firefox */ { 0% {background:red;} 20%{background:yellow;} 40% {background:blue;} 80%{background:green;} 100%{background:white;} } @-webkit-keyframes myfirst /* Safari and Chrome */ { 0% {background:red;} 20%{background:yellow;} 40% {background:blue;} 80%{background:green;} 100%{background:white;} } @-o-keyframes myfirst /* Opera */ { 0% {background:red;} 20%{background:yellow;} 40% {background:blue;} 80%{background:green;} 100%{background:white;} }