Html
    Css
    Js

    
                        
html,body {
	font-family:-apple-system,"Helvetica Neue",Helvetica,Arial,"PingFang SC","Hiragino Sans GB","WenQuanYi Micro Hei","Microsoft Yahei",sans-serif;
	height:100%;
	display:flex;
	align-items:center;
	justify-content:center;
	background-color:#3881c6;
}
.sea {
	width:300px;
	height:300px;
	background-color:whitesmoke;
	background-image:linear-gradient(
        darkblue,rgba(255,255,255,0) 80%,rgba(255,255,255,0.5));
	border-radius:5px;
	box-shadow:0 2px 30px rgba(0,0,0,0.2);
	position:relative;
	overflow:hidden;
}
.sea .title {
	color:white;
	font-size:24px;
	text-align:center;
	line-height:250px;
	text-transform:uppercase;
	letter-spacing:0.4em;
	position:absolute;
	z-index:1;
	width:100%;
}
.sea .wave {
	position:absolute;
	top:-250px;
	left:-100px;
	width:500px;
	height:500px;
	background:deepskyblue;
	border-radius:43%;
	filter:opacity(0.4);
	animation:drift linear infinite;
	transform-origin:50% 48%;
}
.sea .wave:nth-of-type(1) {
	animation-duration:5s;
}
.sea .wave:nth-of-type(2) {
	animation-duration:7s;
}
.sea .wave:nth-of-type(3) {
	animation-duration:9s;
	background-color:orangered;
	filter:opacity(0.1);
}
@keyframes drift {
	from {
	transform:rotate(360deg);
}
}

                        
↑上面代码改变,会自动显示代码结果 jQuery调用版本:1.11.3
 立即下载

纯CSS海浪

0