如何提高这个 CSS 动画的性能?

How to improve the performance of this CSS animation?

我正在使用Chrome和纯pulseCSS动画

.pulse {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  background-color: #53A653;
  border-radius: 100%;  
  -webkit-animation: scaleout 3.0s infinite ease-in-out;
  animation: scaleout 3.0s infinite ease-in-out;
}



@-webkit-keyframes scaleout {
  0% { -webkit-transform: scale(0.0) }
  100% {
    -webkit-transform: scale(1.0);
    opacity: 0;
  }
}

这里是 jsfiddle.

我注意到它很慢。一旦我 运行 它,Chrome 的另一个 windows 的滚动变得不流畅,即使现在我的打字也有点分块。

CSS动画真的这么慢吗?或者我的 CSS 非常糟糕?如何提高其性能?

尝试将动画持续时间更改为 1 秒:

.pulse {width: 20px; height: 20px; vertical-align: middle;background-color: #53A653; border-radius: 100%; -webkit-animation: scaleout 1.0s infinite ease-in-out; animation: scaleout 1.0s infinite ease-in-out;}

编辑:我忘了读这行说你的滚动是如何变得粗壮的。尝试使用 Firefox(愚蠢的建议)。如果不是,那很可能只是您的计算机。