div+css实现炫酷风火轮旋转动画效果代码

代码语言:html

所属分类:动画

代码描述:div+css实现炫酷风火轮旋转动画效果代码

代码标签: div css 炫酷 风火轮 旋转 动画

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

<!DOCTYPE html>
<html lang="en" >
<head>
  <meta charset="UTF-8">
<style>
    html, body {
  width: 100%;
  height: 100%;
}

body {
  background-color: #140032;
  overflow: hidden;
  margin: 0;
}
body * {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}

.circles .circle {
  -webkit-animation: Claws 1.35s linear infinite;
          animation: Claws 1.35s linear infinite;
}
.circles:nth-child(1) {
  transform: rotate(36deg) translate(150px);
}
.circles:nth-child(2) {
  transform: rotate(72deg) translate(150px);
}
.circles:nth-child(3) {
  transform: rotate(108deg) translate(150px);
}
.circles:nth-child(4) {
  transform: rotate(144deg) translate(150px);
}
.circles:nth-child(5) {
  transform: rotate(180deg) translate(150px);
}
.circles:nth-child(6) {
  transform: rotate(216deg) translate(150px);
}
.circles:nth-child(7) {
  transform: rotate(252deg) translate(150px);
}
.circles:nth-child(8) {
  transform: rotate(288deg) translate(150px);
}
.circles:nth-child(9) {
  transform: rotate(324deg) translate(150px);
}
.circles:nth-child(10) {
  transform: rotate(360deg) translate(150px);
}
.circles .claw {
  width: 300px;
  height: 150px;
  border-right: 5px solid;
  border-radius: 20%;
}
.circles .claw:nth-child(1) {
  border-color: #ff0700;
  transform: scale(0.0333333333) rotate(12deg) translate(-300px);
}
.circles .claw:nth-child(2) {
  border-color: #ff0e00;
  transform: scale(0.0666666667) rotate(24deg) translate(-300px);
}
.circles .claw:nth-child(3) {
  border-color: #ff1500;
  transform: scale(0.1) rotate(36deg) translate(-300px);
}
.circles .claw:nth-child(4) {
  border-color: #ff1c00;
  transform: scale(0.1333333333) rotate(48deg) translate(-300px);
}
.circles .claw:nth-child(5) {
  border-color: #ff2300;
  transform: scale(0.1666666667) rotate(60deg) translate(-300px);
}
.circles .claw:nth-child(6) {
  border-color: #ff2b00;
  transform: scale(0.2) rotate(72deg) translate(-300px);
}
.circles .claw:nth-child(7) {
  border-color: #ff3200;
  transform: scale(0.2333333333) rotate(84deg) translate(-300px);
}
.circles .claw:nth-chi.........完整代码请登录后点击上方下载按钮下载查看

网友评论0