无聊写的一个小Demo,方便自己以后使用
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>水波浪Demo</title>
</head>
<style>
body {
margin: 0;
padding: 0;
}
#container {
width: 100vw;
height: 100vh;
overflow: hidden;
}
.wave-wrapper{
width: 100%;
height: 80px;
position: relative;
}
.wave {
width: 100%;
height: 60px;
position: absolute;
}
.wave1 {
bottom: 20px;
background: url('./img/wave.png');
background-position: 0 0;
opacity: 0.4;
animation: moveLeft 7s linea