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;
  left: 2.41181em;
  width: 7em;
  height: 7em;
}
.circle:nth-child(20) {
  animation-delay: 0.6s;
  top: -2.07107em;
  left: -2.07107em;
  width: 7em;
  height: 7em;
}
.circle:nth-child(21) {
  animation-delay: 0.6s;
  top: 2.41181em;
  left: -4.65926em;
  width: 7em;
  height: 7em;
}
.circle:nth-child(22) {
  animation-delay: 0.6s;
  top: 7.58819em;
  left: -4.65926em;
  width: 7em;
  height: 7em;
}
.circle:nth-child(23) {
  animation-delay: 0.6s;
  top: 12.07107em;
  left: -2.07107em;
  width: 7em;
  height: 7em;
}
.circle:nth-child(24) {
  animation-delay: 0.6s;
  top: 14.65926em;
  left: 2.41181em;
  width: 7em;
  height: 7em;
}
.circle:nth-child(25) {
  animation-delay: 0.5s;
  top: 12.5625em;
  left: 6.3125em;
  width: 4.375em;
  height: 4.375em;
}
.circle:nth-child(26) {
  animation-delay: 0.5s;
  top: 11.72516em;
  left: 9.4375em;
  width: 4.375em;
  height: 4.375em;
}
.circle:nth-child(27) {
  animation-delay: 0.5s;
  top: 9.4375em;
  left: 11.72516em;
  width: 4.375em;
  height: 4.375em;
}
.circle:nth-child(28) {
  animation-delay: 0.5s;
  top: 6.3125em;
  left: 12.5625em;
  width: 4.375em;
  height: 4.375em;
}
.circle:nth-child(29) {
  animation-delay: 0.5s;
  top: 3.1875em;
  left: 11.72516em;
  width: 4.375em;
  height: 4.375em;
}
.circle:nth-child(30) {
  animation-delay: 0.5s;
  top: 0.89984em;
  left: 9.4375em;
  width: 4.375em;
  height: 4.375em;
}
.circle:nth-child(31) {
  animation-delay: 0.5s;
  top: 0.0625em;
  left: 6.3125em;
  width: 4.375em;
  height: 4.375em;
}
.circle:nth-child(32) {
  animation-delay: 0.5s;
  top: 0.89984em;
  left: 3.1875em;
  width: 4.375em;
  height: 4.375em;
}
.circle:nth-child(33) {
  animation-delay: 0.5s;
  top: 3.1875em;
  left: 0.89984em;
  width: 4.375em;
  height: 4.375em;
}
.circle:nth-child(34) {
  animation-delay: 0.5s;
  top: 6.3125em;
  left: 0.0625em;
  width: 4.375em;
  height: 4.375em;
}
.circle:nth-child(35) {
  animation-delay: 0.5s;
  top: 9.4375em;
  left: 0.89984em;
  width: 4.375em;
  height: 4.375em;
}
.circle:nth-child(36) {
  animation-delay: 0.5s;
  top: 11.72516em;
  left: 3.1875em;
  width: 4.375em;
  height: 4.375em;
}
.circle:nth-child(37) {
  animation-delay: 0.4s;
  top: 10.90596em;
  left: 8.14382em;
  width: 2.73438em;
  height: 2.73438em;
}
.circle:nth-child(38) {
  animation-delay: 0.4s;
  top: 9.89495em;
  left: 9.89495em;
  width: 2.73438em;
  height: 2.73438em;
}
.circle:nth-child(39) {
  animation-delay: 0.4s;
  top: 8.14382em;
  left: 10.90596em;
  width: 2.73438em;
  height: 2.73438em;
}
.circle:nth-child(40) {
  animation-delay: 0.4s;
  top: 6.1218em;
  left: 10.90596em;
  width: 2.73438em;
  height: 2.73438em;
}
.circle:nth-child(41) {
  animation-delay: 0.4s;
  top: 4.37068em;
  left: 9.89495em;
  width: 2.73438em;
  height: 2.73438em;
}
.circle:nth-child(42) {
  animation-delay: 0.4s;
  top: 3.35966em;
  left: 8.14382em;
  width: 2.73438em;
  height: 2.73438em;
}
.circle:nth-child(43) {
  animation-delay: 0.4s;
  top: 3.35966em;
  left: 6.1218em;
  width: 2.73438em;
  height: 2.73438em;
}
.circle:nth-child(44) {
  animation-delay: 0.4s;
  top: 4.37068em;
  left: 4.37068em;
  width: 2.73438em;
  height: 2.73438em;
}
.circle:nth-child(45) {
  animation-delay: 0.4s;
  top: 6.1218em;
  left: 3.35966em;
  width: 2.73438em;
  height: 2.73438em;
}
.circle:nth-child(46) {
  animation-delay: 0.4s;
  top: 8.14382em;
  left: 3.35966em;
  width: 2.73438em;
  height: 2.73438em;
}
.circle:nth-child(47) {
  animation-delay: 0.4s;
  top: 9.89495em;
  left: 4.37068em;
  width: 2.73438em;
  height: 2.73438em;
}
.circle:nth-child(48) {
  animation-delay: 0.4s;
  top: 10.90596em;
  left: 6.1218em;
  width: 2.73438em;
  height: 2.73438em;
}
.circle:nth-child(49) {
  animation-delay: 0.3s;
  top: 10.08691em;
  left: 7.64551em;
  width: 1.70898em;
  height: 1.70898em;
}
.circle:nth-child(50) {
  animation-delay: 0.3s;
  top: 9.75983em;
  left: 8.86621em;
  width: 1.70898em;
  height: 1.70898em;
}
.circle:nth-child(51) {
  animation-delay: 0.3s;
  top: 8.86621em;
  left: 9.75983em;
  width: 1.70898em;
  height: 1.70898em;
}
.circle:nth-child(52) {
  animation-delay: 0.3s;
  top: 7.64551em;
  left: 10.08691em;
  width: 1.70898em;
  height: 1.70898em;
}
.circle:nth-child(53) {
  animation-delay: 0.3s;
  top: 6.4248em;
  left: 9.75983em;
  width: 1.70898em;
  height: 1.70898em;
}
.circle:nth-child(54) {
  animation-delay: 0.3s;
  top: 5.53119em;
  left: 8.86621em;
  width: 1.70898em;
  height: 1.70898em;
}
.circle:nth-child(55) {
  animation-delay: 0.3s;
  top: 5.2041em;
  left: 7.64551em;
  width: 1.70898em;
  height: 1.70898em;
}
.circle:nth-child(56) {
  animation-delay: 0.3s;
  top: 5.53119em;
  left: 6.4248em;
  width: 1.70898em;
  height: 1.70898em;
}
.circle:nth-child(57) {
  animation-delay: 0.3s;
  top: 6.4248em;
  left: 5.53119em;
  width: 1.70898em;
  height: 1.70898em;
}
.circle:nth-child(58) {
  animation-delay: 0.3s;
  top: 7.64551em;
  left: 5.2041em;
  width: 1.70898em;
  height: 1.70898em;
}
.circle:nth-child(59) {
  animation-delay: 0.3s;
  top: 8.86621em;
  left: 5.53119em;
  width: 1.70898em;
  height: 1.70898em;
}
.circle:nth-child(60) {
  animation-delay: 0.3s;
  top: 9.75983em;
  left: 6.4248em;
  width: 1.70898em;
  height: 1.70898em;
}
.circle:nth-child(61) {
  animation-delay: 0.2s;
  top: 9.43983em;
  left: 8.36087em;
  width: 1.06812em;
  height: 1.06812em;
}
.circle:nth-child(62) {
  animation-delay: 0.2s;
  top: 9.0449em;
  left: 9.0449em;
  width: 1.06812em;
  height: 1.06812em;
}
.circle:nth-child(63) {
  animation-delay: 0.2s;
  top: 8.36087em;
  left: 9.43983em;
  width: 1.06812em;
  height: 1.06812em;
}
.circle:nth-child(64) {
  animation-delay: 0.2s;
  top: 7.57102em;
  left: 9.43983em;
  width: 1.06812em;
  height: 1.06812em;
}
.circle:nth-child(65) {
  animation-delay: 0.2s;
  top: 6.88698em;
  left: 9.0449em;
  width: 1.06812em;
  height: 1.06812em;
}
.circle:nth-child(66) {
  animation-delay: 0.2s;
  top: 6.49206em;
.........完整代码请登录后点击上方下载按钮下载查看

网友评论0