css实现地球新冠病毒戴口罩宣传插画动画效果代码
代码语言:html
所属分类:布局界面
代码描述:css实现地球新冠病毒戴口罩宣传插画动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
html {
box-sizing: border-box;
-webkit-font-smoothing: antialiased;
}
body {
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
width: 100%;
background-color: #1f184f;
position: relative;
}
.covid-wrapper {
position: relative;
}
.covid-sticks {
position: absolute;
bottom: 33px;
left: 36px;
}
.covid {
background-image: url("//repo.bfw.wiki/bfwrepo/images/xinguang/dark-stripes.png"), linear-gradient(to left top, #9d1231, #ae1a38, #be2240, #d02a47, #e1324f, #ea4153, #f34e58, #fc5b5d, #fd6e61, #fe7f68, #ff8f70, #ff9e7a);
width: 410px;
height: 410px;
z-index: 2;
overflow: hidden;
position: relative;
border-radius: 50%;
-webkit-animation: pulse 2s infinite;
animation: pulse 2s infinite;
}
.covid-pulse {
content: "";
width: 480px;
height: 480px;
background-color: #2f184e;
border-radius: 50%;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
box-shadow: inset 0 0 25px #8f2453;
}
@-webkit-keyframes pulse {
0% {
box-shadow: 0 0 0 0 rgba(204, 169, 44, 0.21);
}
70% {
box-shadow: 0 0 8px 55px rgba(99, 32, 91, 0.1);
}
100% {
box-shadow: 0 0 0 0 rgba(99, 32, 91, 0.1);
}
}
@keyframes pulse {
0% {
box-shadow: 0 0 0 0 rgba(204, 169, 44, 0.21);
}
70% {
box-shadow: 0 0 8px 55px rgba(99, 32, 91, 0.1);
}
100% {
box-shadow: 0 0 0 0 rgba(99, 32, 91, 0.1);
}
}
.covid-stick {
position: absolute;
overflow: visible;
display: block;
width: 6px;
z-index: -1;
height: 50px;
background-image: url("//repo.bfw.wiki/bfwrepo/images/xinguang/dark-stripes.png"), linear-gradient(to left top, #9d1231, #ae1a38, #be2240, #d02a47, #e1324f, #ea4153, #f34e58, #fc5b5d, #fd6e61, #fe7f68, #ff8f70, #ff9e7a);
}
.covid-stick:before {
content: "";
position: absolute;
width: 16px;
height: 16px;
background-image: url("//repo.bfw.wiki/bfwrepo/images/xinguang/dark-stripes.png"), linear-gradient(to left top, #9d1231, #ae1a38, #be2240, #d02a47, #e1324f, #ea4153, #f34e58, #fc5b5d, #fd6e61, #fe7f68, #ff8f70, #ff9e7a);
top: 36px;
right: .........完整代码请登录后点击上方下载按钮下载查看
















网友评论0