css实现线条波纹涟漪动画效果代码

代码语言:html

所属分类:动画

代码描述:css实现线条波纹涟漪动画效果代码

代码标签: 波纹 涟漪 动画 效果

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en" >

<head>

  <meta charset="UTF-8">
  

  
  
  
  
<style>
:root {
}
body {
	background-image: radial-gradient(darkcyan, darkblue);
	margin: 0 auto;
	height: 100vw;
	width: 100vh;
	overflow: hidden;
}
img {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}
.c {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) rotateX(45deg);
	/* 	Native CSS properties don't support the customization of border-style. Therefore, we use a trick with an SVG image inside background-image property. 
	https://kovart.github.io/dashed-border-generator/
	*/
	/* 	background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='100' ry='100' stroke='aqua' stroke-width='1' stroke-dasharray='1' stroke-dashoffset='1' stroke-linecap='butt'/%3e%3c/svg%3e"); */
	border-radius: 50%;
	border: 1px dotted aqua;
	animation: dripBounce 5s infinite;
}
@keyframes dripBounce {
	/* 	0%{top:50%} */
	10% {
		top: calc(50% + 5px);
	}
	20% {
		top: calc(50% - 5px);
	}
	35% {
		top: 50%;
	}
}
.c1 {
	height: 10px;
	width: 20px;
	animation-delay: -10s;
}
.c2 {
	height: 20px;
	width: 40px;
	animation-delay: -9.8s;
	top: calc(50% + 1px);
}
.c3 {
	height: 30px;
	width: 60px;
	animation-delay: -9.6s;
	top: calc(50% + 2px);
}
.c4 {
	height: 40px;
	width: 80px;
	animation-delay: -9.4s;
	top: calc(50% + 3px);
}
.c5 {
	height: 50px;
	width: 100px;
	animation-delay: -9.2s;
	top: calc(50% + 4px);
}
.c6 {
	height: 60px;
	width: 120px;
	animation-delay: -9s;
	top: calc(50% + 5px);
}
.c7 {
	height: 70px;
	width: 140px;
	animation-delay: -8.8s;
	top: calc(50% + 6px);
}
.c8 {
	height: 80px;
	widt.........完整代码请登录后点击上方下载按钮下载查看

网友评论0