css实现svg背景曲线多彩彩带飘动动画效果代码

代码语言:html

所属分类:背景

代码描述:css实现svg背景曲线多彩彩带飘动动画效果代码

代码标签: css svg 背景 曲线 多彩 彩带 飘动

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

<!doctype html>
<html>
<head>
<meta charset="utf-8">


<style>
body{overflow: hidden}
.curveWrap {
  opacity: 1;
  width: 150vw;
  height: 100vh;
  position: absolute;
  -webkit-transform: translateX(-30vw) rotate(-15deg);
          transform: translateX(-30vw) rotate(-15deg);
  will-change: transform;
}
.curveWrap .curve {
  stroke-linecap: round;
  stroke-opacity: 0;
}
.curveWrap .curve path {
  -webkit-transform-origin: center;
          transform-origin: center;
}
.curveWrap .curve path:nth-child(1) {
  stroke-width: 8;
  -webkit-animation: curve 35s linear 1.4s infinite;
          animation: curve 35s linear 1.4s infinite;
}
.curveWrap .curve path:nth-child(6n + 1) {
  stroke: goldenrod;
}
.curveWrap .curve path:nth-child(6n + 2) {
  stroke: cornflowerBlue;
}
.curveWrap .curve path:nth-child(6n + 3) {
  stroke: GreenYellow;
}
.curveWrap .curve path:nth-child(6n + 4) {
  stroke: lightblue;
}
.curveWrap .curve path:nth-child(6n + 5) {
  stroke: darkgreen;
}
.curveWrap .curve path:nth-child(6n + 6) {
  stroke: olive;
}
.curveWrap .curve path:nth-child(2) {
  stroke-width: 20;
  -webkit-animation: curve 35s linear 2.8s infinite;
          animation: curve 35s linear 2.8s infinite;
}
.curveWrap .curve path:nth-child(6n + 1) {
  stroke: goldenrod;
}
.curveWrap .curve path:nth-child(6n + 2) {
  stroke: cornflowerBlue;
}
.curveWrap .curve path:nth-child(6n + 3) {
  stroke: GreenYellow;
}
.curveWrap .curve path:nth-child(6n + 4) {
  stroke: lightblue;
}
.curveWrap .curve path:nth-child(6n + 5) {
  stroke: darkgreen;
}
.curveWrap .curve path:nth-child(6n + 6) {
  stroke: olive;
}
.curveWrap .curve path:nth-child(3) {
  stroke-width: 48;
  -webkit-animation: curve 35s linear 4.2s infinite;
          animation: curve 35s linear 4.2s infinite;
}
.curveWrap .curve path:nth-child(6n + 1) {
  stroke: goldenrod;
}
.curveWrap .curve path:nth-child(6n + 2) {
  stroke: cornflowerBlue;
}
.curveWrap .curve path:nth-child(6n + 3) {
  stroke: GreenYellow;
}
.curveWrap .curve path:nth-child(6n + 4) {
  stroke: lightblue;
}
.curveWrap .curve path:nth-child(6n + 5) {
  stroke: darkgreen;
}
.curveWrap .curve path:nth-child(6n + 6) {
  stroke: olive;
}
.curveWrap .curve path:nth-child(4) {
  stroke-width: 7;
  -webkit-animation: curve 35s linear 5.6s infinite;
          animation: curve 35s linear 5.6s infinite;
}
.cu.........完整代码请登录后点击上方下载按钮下载查看

网友评论0