css实现六边形花朵绽放动画效果代码
代码语言:html
所属分类:动画
代码描述:css实现六边形花朵绽放动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
* {
border: 0;
box-sizing: border-box;
margin: 0;
padding: 0;
}
:root {
font-size: calc(16px + (24 - 16) * (100vw - 320px) / (1280 - 320));
}
body {
background: #737a8c;
display: grid;
place-items: center;
font: 1em/1.5 serif;
height: 100vh;
}
.circles, .circle {
background: #fff;
}
.circles {
overflow: hidden;
position: relative;
width: 17em;
height: 17em;
}
.circle {
animation: pulse 3s cubic-bezier(0.67, 0, 0.33, 1) infinite;
border-radius: 50%;
mix-blend-mode: difference;
position: absolute;
top: 0;
left: 0;
width: 11.2em;
height: 11.2em;
}
.circle:nth-child(1) {
animation-delay: 0.7s;
top: 18.9em;
left: 2.9em;
width: 11.2em;
height: 11.2em;
}
.circle:nth-child(2) {
animation-delay: 0.7s;
top: 16.75641em;
left: 10.9em;
width: 11.2em;
height: 11.2em;
}
.circle:nth-child(3) {
animation-delay: 0.7s;
top: 10.9em;
left: 16.75641em;
width: 11.2em;
height: 11.2em;
}
.circle:nth-child(4) {
animation-delay: 0.7s;
top: 2.9em;
left: 18.9em;
width: 11.2em;
height: 11.2em;
}
.circle:nth-child(5) {
animation-delay: 0.7s;
top: -5.1em;
left: 16.75641em;
width: 11.2em;
height: 11.2em;
}
.circle:nth-child(6) {
animation-delay: 0.7s;
top: -10.95641em;
left: 10.9em;
width: 11.2em;
height: 11.2em;
}
.circle:nth-child(7) {
animation-delay: 0.7s;
top: -13.1em;
left: 2.9em;
width: 11.2em;
height: 11.2em;
}
.circle:nth-child(8) {
animation-delay: 0.7s;
top: -10.95641em;
left: -5.1em;
width: 11.2em;
height: 11.2em;
}
.circle:nth-child(9) {
animation-delay: 0.7s;
top: -5.1em;
left: -10.95641em;
width: 11.2em;
height: 11.2em;
}
.circle:nth-child(10) {
animation-delay: 0.7s;
top: 2.9em;
left: -13.1em;
width: 11.2em;
height: 11.2em;
}
.circle:nth-child(11) {
animation-delay: 0.7s;
top: 10.9em;
left: -10.95641em;
width: 11.2em;
height: 11.2em;
}
.circle:nth-child(12) {
animation-delay: 0.7s;
top: 16.75641em;
left: -5.1em;
width: 11.2em;
height: 11.2em;
}
.circle:nth-child(13) {
animation-delay: 0.6s;
top: 14.65926em;
left: 7.58819em;
width: 7em;
height: 7em;
}
.circle:nth-child(14) {
animation-delay: 0.6s;
top: 12.07107em;
left: 12.07107em;
width: 7em;
height: 7em;
}
.circle:nth-child(15) {
animation-delay: 0.6s;
top: 7.58819em;
left: 14.65926em;
width: 7em;
height: 7em;
}
.circle:nth-child(16) {
animation-delay: 0.6s;
top: 2.41181em;
left: 14.65926em;
width: 7em;
height: 7em;
}
.circle:nth-child(17) {
animation-delay: 0.6s;
top: -2.07107em;
left: 12.07107em;
width: 7em;
height: 7em;
}
.circle:nth-child(18) {
animation-delay: 0.6s;
top: -4.65926em;
left: 7.58819em;
width: 7em;
height: 7em;
}
.circle:nth-child(19) {
animation-delay: 0.6s;
top: -4.65926em;
.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0