首页htmlkeyframeAnimation - 如何在动画的不同关键帧上启动不同的元素

Animation - 如何在动画的不同关键帧上启动不同的元素

我们想知道如何在动画的不同关键帧上启动不同的元素。

in CSS
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
#test {
  height: 1em;
  background: red;
  -webkit-animation: test 6s ease -3s infinite;
}

@-webkit-keyframes test {
  from { width:0%;}
  50%{width:100%;}
  to {width: 0%;}
}
</style>
</head>
<body>
  <div id="test"></div>
</body>
</html>