首页htmlbackgroundAnimation - 如何背景颜色更改延迟

Animation - 如何背景颜色更改延迟

我们想知道如何背景颜色更改延迟。

<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
body {
  animation: color-change 5s 1;
  -webkit-animation: color-change 5s 1; /* Safari and Chrome */
  animation-fill-mode: forwards;
  -webkit-animation-fill-mode: forwards;
}

@keyframes color-change { 
  0% {background: #fff;}
  90%{background:#fff;}
  100%{background:#000;}
}
@-webkit-keyframes color-change /* Safari and Chrome */ { 
  0% {background: #fff;}
  90%{background:#fff;}
  100%{background:#000;}
}
</style>
</head>
<body>
  
</body>
</html>