svg实现一个彩虹圈圈效果代码

代码语言:html

所属分类:布局界面

代码描述:svg实现一个彩虹圈圈效果代码

代码标签: 彩虹 圈圈 效果

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


<!DOCTYPE html>
<html lang="en" >

<head>

  <meta charset="UTF-8">
  

  
  
  
  
<style>
html,body { 
  height:100%;
  background: #1c1830;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.first {
  height: 750px;
  width: 800px;
}

svg {
  height: 800px;
  width: 800px;
}

.first circle {
      transform-origin: center;
  transform: rotate(45deg);
}

.scene circle {
      transform-origin: center;
  transform: rotate(-45deg);
}

* { box-sizing: border-box; }

body { font-family: sans-serif; }

.scene {
  width: 800px;
  height: 800px;
  margin: 320px 0 320px 0;
  perspective: 800px;
  transform: translate(0, -900px);
}

.cube svg {
  height: 100%;
  width: 100%;
}
.cube {
  width: 800px;
  height: 800px;
  position: relative;
  transform-style: preserve-3d;
  transform: translateZ(-400px);
}

.cube__face {
  position: absolute;
  width: 800px;
  height: 800px;
}

.cube__face--bottom { transform: rotateX(-90deg) translateZ(400px); 
}

.row {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

.column {
  display: flex;
  color: whit.........完整代码请登录后点击上方下载按钮下载查看

网友评论0