我试着让我的动画不是参差不齐它向上旋转等一秒钟它不只是流畅我试着改变左边:和旋转:但它没有改变停止和启动水滴只是向上停止开始移动停止旋转开始移动停止旋转我试着交换部分改变%

.drop {
  position: absolute;
  top: 35%;
  left: 46%;
  background: #7cc1ff;
  border-radius: 0% 100% 100% 100%;
  transform: rotate(45deg);
  width: 30px;
  height: 30px;
}

.drop {
  animation: fall 4s infinite;
}

@keyframes fall {
  0% {
    width: 30px;
    height: 30px;
    top: 35%;
    left: 46%;
  }
  10% {
    top: 20%;
    left: 50%;
  }
  20% {
    top: 15%;
    left: 60%;
  }
  30% {
    top: 20%;
    left: 70%;
    rotate: 100deg;
  }
  40% {
    top: 30%;
    left: 80%;
    rotate: 190deg;
  }
  50% {
    top: 60%;
    left: 80%;
  }
  60% {
    top: 70%;
    left: 80%;
  }
  70% {
    top: 80%;
    left: 80%;
  }
  80% {
    top: 100%;
    left: 80%;
  }
  90% {
    top: 100;
    opacity: 0;
    left: 80%;
  }
  100% {
    top: 100;
    opacity: 0;
    left: 46%;
  }
}
<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>replit</title>
  <link href="style.css" rel="stylesheet" type="text/css" />
</head>

<div class="drop"></div>

</html>

推荐答案

添加线性作品try

Animation: linear Anim 4s;

而不是

Animation: Anim 4s;

Html相关问答推荐

窗口对象中是否有对<;html&>根元素的引用?

如何在div中淡入和淡出渐变背景?

需要关于HTML的建议

为什么不是所有字体好的图标都能与boostRapCDN一起使用呢?

调整一组IMG的大小以适应容器DIV

背景可点击,而不是文本

如何在VB.NET中用打印预览和直接打印的方式在Html中打印数据表的内容,包括页眉/设置纸张/方向/适合页面/总计

动画的停止和启动并不顺利

如何在ASP.NET Core中添加换行符

如何将 元素与常规文本垂直对齐

用由文本制成的边框包围内容

为什么 html 元素的 max-width 和 width 一起工作?

带圆角帽的 CSS 部分边框

如何使用CSS Select 表亲元素

如何使文本区域自动扩展到最大高度?

调整屏幕大小时标题在图像下方重叠 - HTML

为什么 css position:fixed 不适用于对话框标签?

如何在Bootstrap卡片底部添加波浪形状

如何在react 中向按钮添加禁用属性?

使用 CSS 样式化进度条