css实现三维网格动画效果代码
代码语言:html
所属分类:动画
代码描述:css实现三维网格动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
body {
background: darkblue;
background: linear-gradient(0deg, #050057 0%, #0b0bb0 100%);
background-repeat: no-repeat;
background-size: cover;
height: 100vh;
overflow: hidden;
}
div,
div::after {
position: absolute;
width: 55vw;
height: 10vh;
left: 0;
top: -100px;
transform-origin: top left;
border-bottom: 1px solid hotpink;
border-radius: 0 0 0 100%;
}
div::after {
content: "";
left: 100%;
top: 100%;
border-radius: 0 100% 0 0;
border-top: 1px solid deeppink;
border-bottom: none;
}
div::before {
content: "";
position: absolute;
width: 12px;
height: 6px;
background: #ffffff;
box-shadow: 0 0 20px #ffffff;
top: 0;
left: 0;
border-radius: 999px;
animation: spark 6000ms linear infinite;
transform: scale(0.1) translate(-20vw, 0);
animation-delay: inherit;
}
body div:nth-of-type(1) {
top: -95px;
transform: rotate(-9.5deg);
animation-delay: 4399ms;
}
body div:nth-of-type(2) {
top: -90px;
transform: rotate(-9deg);
animation-delay: 657ms;
}
body div:nth-of-type(3) {
top: -85px;
transform: rotate(-8.5deg);
animation-delay: 3758ms;
}
body div:nth-of-type(4) {
top: -80px;
transform: rotate(-8deg);
animation-delay: 5267ms;
}
body div:nth-of-type(5) {
top: -75px;
transform: rotate(-7.5deg);
animation-delay: 4446ms;
}
body div:nth-of-type(6) {
top: -70px;
transform: rotate(-7deg);
animation-delay: 5175ms;
}
body div:nth-of-type(7) {
top: -65px;
transform: rotate(-6.5deg);
animation-delay: 868ms;
}
body div:nth-of-type(8) {
top: -60px;
transform: rotate(-6deg);
animation-delay: 3459ms;
}
body div:nth-of-type(9) {
top: -55px;
transform: rotate(-5.5deg);.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0