html - svg 无限波动画
问题描述
我试图让我的 SVG 波无限,但我遇到了端点不会相遇的问题。就像波浪永远持续一样,但您可以清楚地看到 svg 的截止点。
* HTML
<div class="nav-image">
<h1 class="navdescriptionfirst animate__animated animate__fadeInDown ">Post</h1>
<h1 class="animate__animated animate__fadeInDown animate__delay-1s">Find</h1>
<h1 class="animate__animated animate__fadeInDown animate__delay-2s">Trade</h1>
<img id="wave" src="wave.svg">
</div
CSS
.nav-image {
background-color: var(--color-one);
padding-top: 100px;
height: 100vh;
overflow: hidden;
position: relative;
width: 100%;
}
.nav-image img {
width: 200%;
height: 50%;
position: absolute;
animation: wave linear 20s infinite;
bottom: 0;
}
@keyframes wave {
0% {
transform: translate(-50%)
}
100% {
transform: translate(0);
}
}
我已经使动画速度更快,以便您可以在端点不相遇时看到我的意思。
我应该改变什么让他们相遇或看起来无限?
解决方案
推荐阅读
- typo3 - 问:如何使用 f:form action 和 textflied 将值传递给控制器动作
- html - 无扩展的 Flask 中的表单验证和重定向(WTForms 等)
- apache-spark - hdp 沙盒/zeppelin 上的 %spark2.r 不起作用
- javascript - 编写高级正则表达式
- android-studio - 如何使用 Android Studio 为 Flutter 库创建 .jar 文件
- r - 排列Grob中的垂直对齐和高度
- c++ - 单独输入线程上的 OpenGL 无效操作错误
- ubuntu-16.04 - 在 Ubuntu 16.04 上正确启动和停止 pgAdmin4
- javascript - 将代码直接放入弹窗函数中
- javascript - 来自文件的 Javascript 导入类产生“Uncaught SyntaxError: Unexpected Identifier”