📜  @keyframes opact - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:25.703000             🧑  作者: Mango

代码示例1
@keyframes name-of-animation {
  0%    { opacity: 0; }
  20%   { opacity: 1; }
  80%   { opacity: 0; }
  100%  { opacity: 1; }
}

.animate-this-element {
  animation: name-of-animation 5s infinite;
}