纯css实现一个抓娃娃机的效果

代码语言:html

所属分类:游戏

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


<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">

<link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Comfortaa:400,700&amp;display=swap&amp;text=WINALTHEGS%20'>
<style>
* {
  border: 0;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  font-size: calc(16px + (20 - 16) * (100vw - 320px)/(1280 - 320));
}

body, button {
  color: #f2f2f2;
  font: bold 1em/1.5 Comfortaa, sans-serif;
  text-align: center;
  text-transform: uppercase;
}

body {
  background: #041644;
}

.machine {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.25em;
  box-shadow: -0.25em 0 0 rgba(0, 0, 0, 0.25) inset, 0.25em 0 0 rgba(255, 255, 255, 0.2) inset, 0 3.5em 0 inset, -1em 0 0 inset, 0 -18em 0 inset, 1em 0 0 inset, 0 -22em 0 rgba(128, 128, 128, 0.3) inset;
  color: #0b46da;
  display: flex;
  justify-content: center;
  align-content: flex-start;
  flex-wrap: wrap;
  margin: 1.5em auto 1em auto;
  width: 18em;
  height: 34.5em;
}
.machine input {
  position: fixed;
  top: -1.5em;
  left: -1.5em;
}
.machine input:checked ~ .machine__btn {
  filter: brightness(75%);
  -webkit-filter: brightness(75%);
}
.machine input:checked ~ .machine__btn:nth-child(6) {
  animation: flash 1s 6s steps(1) infinite;
  visibility: hidden;
}
.machine input:checked ~ .machine__btn:nth-child(7) {
  animation: disappear 1s 5s steps(1) forwards;
  visibility: visible;
}
.machine input:checked ~ .machine__btn:nth-child(n + 2):nth-child(-n + 5):active ~ .machine__window .machine__crane-z {
  transform: translateZ(-11.49em);
}
.machine input:checked ~ .machine__btn:nth-child(n + 2):nth-child(-n + 5):active ~ .machine__window .machine__crane-x {
  transform: translateX(0.01em);
}
.machine input:checked ~ .machine__btn:nth-child(n + 2):nth-child(-n + 5):active ~ .machine__window .machine__crane-claw {
  animation-name: swingClaw2;
  animation-duration: 0s;
}
.machine input:checked ~ .machine__window .machine__crane-z, .machine input:checked ~ .machine__window .machine__crane-x {
  transition: transform 2s 2.75s linear;
}
.machine input:checked ~ .machine__window .machine__crane-z {
  transform: translateZ(-11.49em);
}
.machine input:checked ~ .machine__window .machine__crane-x {
  transform: translateX(0.01em);
}
.machine input:checked ~ .machine__window .machine__crane-arm, .machine input:checked ~ .machine__window .machine__crane-claw, .machine input:checked ~ .machine__window .machine__crane-claw .machine__prize, .machine input:checked ~ .machine__window .machine__crane-finger, .machine input:checked ~ .machine__window .machine__crane-palm {
  animation-duration: 5s;
}
.machine input:checked ~ .machine__window .machine__crane-arm, .machine input:checked ~ .machine__window .machine__crane-claw, .machine input:checked ~ .machine__window .machine__crane-finger, .machine input:checked ~ .machine__window .machine__crane-palm {
  animation-timing-function: linear;
}
.machine input:checked ~ .machine__window .machine__crane-arm {
  animation-name: lowerArm;
}
.machine input:checked ~ .machine__window .machine__crane-claw {
  animation-name: swingClaw2;
}
.machine input:checked ~ .machine__window .machine__crane-claw .machine__prize {
  animation-name: liftPrize;
  animation-timing-function: ease-in;
}
.machine input:checked ~ .machine__window .machine__crane-finger:first-child {
  animation-name: grabA;
}
.machine input:checked ~ .machine__window .machine__crane-finger:nth-child(2) {
  animation-name: grabB;
}
.machine input:checked ~ .machine__window .machine__crane-finger:nth-child(3) {
  animation-name: grabC;
}
.machine input:checked ~ .machine__window .machine__crane-palm {
  animation-name: raisePalm;
}
.machine input:focus ~ .machine__btn:nth-child(6) {
  filter: brightness(125%);
  -webkit-filter: brightness(125%);
}
.machine, .machine__btn, .machine__window, .machine__crane-z, .machine__crane-claw {
  position: relative;
}
.machine__roof, .machine__window {
  width: 16rem;
}
.machine__roof, .machine__btn span {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}
.machine__btn {
  background: #5583f6;
  border-radius: 50%;
  box-shadow: 0 0.375em 0 #255ff4;
  color: #171717;
  cursor: pointer;
  display: block;
  margin: 0 0.125em;
  width: 3em;
  height: 2.25em;
  z-index: 1;
}
.machine__btn:active {
  box-shadow: 0 0 0 #255ff4;
  transform: translateY(0.375em);
}
.machine__btn:active ~ .machine__window .machine__crane-z, .machine__btn:active ~ .machine__window .machine__crane-x {
  transition: transform 2s linear;
}
.machine__btn:focus {
  filter: brightness(125%);
  -webkit-filter: brightness(125%);
  outline: transparent;
}
.machine__btn--red {
  background: #f45757;
  box-shadow: 0 0.375em 0 #f22626;
}
.machine__btn--red:active {
  box-shadow: 0 0 0 #f22626;
}
.machine__btn:nth-child(7), .machine__btn span {
  position: absolute;
}
.machine__btn:nth-child(7) {
  top: 17.5em;
  right: 0.875em;
  visibility: hidden;
}
.machine__btn span {
  display: inline-block;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.machine__btn:nth-child(2):active ~ .machine__window .machine__crane-claw, .machine__btn:nth-child(4):active ~ .machine__window .machine__crane-claw {
  animation: swingClaw1 1s linear infinite reverse;
}
.machine__btn:nth-child(3):active ~ .machine__window .machine__crane-claw, .machine__btn:nth-child(5):active ~ .machine__window .machine__crane-claw {
  animation: swingClaw1 1s linear infinite;
}
.machine__btn:nth-child(2):active ~ .machine__window .machine__crane-x {
  transform: translateX(0.01em);
}
.machine__btn:nth-child(3):active ~ .machine__window .machine__crane-x {
  transform: translateX(11.5em);
}
.machine__btn:nth-child(4):active ~ .machine__window .machine__crane-z {
  transform: translateZ(-11.49em);
}
.machine__btn:nth-child(5):active ~ .machine__window .machine__crane-z {
  transform: translateZ(-0.01em);
}
.machine__roof {
  background: #f2b926;
  color: #3c2c01;
  cursor: default;
  font-size: 1.25em;
  height: 2rem;
  margin: 0.75rem;
  padding-top: 0.2rem;
  order: -2;
}
.machine__window {
  box-shadow: 0.25em 0 0 rgba(255, 255, 255, 0.2), -0.25em 0 0 rgba(0, 0, 0, 0.25);
  height: 13em;
  order: -1;
  overflow: hidden;
  margin-bottom: 1em;
  perspective: 40em;
  z-index: -1;
}
.machine__crane-finger, .machine__crane-palm, .machine__prizes, .machine__prize {
  position: absolute;
}
.machine__crane-z, .machine__crane-x {
  transition: transform 10000s linear;
}
.machine__crane-z {
  left: 0.75em;
  transform: translateZ(-11.5em);
  z-index: -3;
}
.machine__crane-x {
  width: 3em;
  height: 14em;
  transform: translateX(0);
}
.machine__crane-arm {
  background: linear-gradient(#969696, #969696) 50% 0/0.25em 100%;
  margin: auto;
  width: 100%;
  height: 8em;
  transform: translateY(-8em);
}
.machine__crane-claw {
  background: linear-gradient(#969696, #969696) 50% 1em/1.5em 0.25em, linear-gradient(-80deg, rgba(150, 150, 150, 0) 38%, #969696 41% 64%, rgba(150, 150, 150, 0) 67%) 0.25em 1em/1em 2em, linear-gradient(80deg, rgba(150, 150, 150, 0) 38%, #969696 41% 64%, rgba(150, 150, 150, 0) 67%) 1.75em 1em/1em 2em, linear-gradient(#636363, #636363) 50% 0/1em 0.75em, linear-gradient(#575757, #575757) 50% 0.75em/0.75em 1.5em, linear-gradient(#969696, #969696) 50% 2.25em/0.5em 0.5em;
  transform-origin: 50% 0;
  top: 8em;
  width: 100%;
  height: 6em;
}
.machine__crane-arm, .machine__crane-claw {
  background-repeat: no-repeat;
}
.machine__crane-finger {
  color: #969696;
  top: 3em;
  width: 1.5em;
  height: 3em;
}
.machine__crane-finger:first-child, .machine__crane-finger:nth-child(3) {
  border-top: 0.25em solid;
}
.machine__crane-finger:first-child {
  border-radius: 100% 0 0 100%/35% 0 0 50%;
  border-left: 0.5em solid;
  left: 0;
  transform: rotate(30deg);
  transform-origin: 100% 0;
}
.machine__crane-finger:nth-child(2) {
  background: #7d7d7d;
  border-radius: 0 0 50% 50%/0 0 100% 100%;
  left: calc(50% - 0.25em);
  width: 0.5em;
  transform: scaleY(0.67);
  transform-origin: 50% 0;
}
.machine__crane-finger:nth-child(3) {
  border-radius: 0 100% 100% 0/0 35% 50% 0;
  border-right: 0.5em solid;
  right: 0;
  transform: rotate(-30deg);
  transform-origin: 0 0;
}
.machine__crane-palm {
  background: #a3a3a3;
  border-radius: 0.25em;
  top: 2.75em;
  left: calc(50% - 0.625em);
  width: 1.25em;
  height: 0.5em;
}
.machine__prizes {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.machine__prizes .machine__prize {
  opacity: 1;
}
.machine__prizes .machine__prize:nth-child(1) {
  background: #a22ad5;
  top: 11.3em;
  left: 12.3em;
}
.machine__prizes .machine__prize:nth-child(2) {
  background: #7e2ad5;
  top: 10.3em;
  left: 10.6em;
}
.machine__prizes .machine__prize:nth-child(3) {
  background: #2ad5ad;
  top: 12em;
  left: 6.8em;
}
.machine__prizes .machine__prize:nth-child(4) {
  background: #2a6ed5;
  top: 11.1em;
  left: 0.7em;
}
.machine__prizes .machine__prize:nth-child(5) {
  background: #2a9dd5;
  top: 9.9em;
  left: 11.9em;
}
.machine__prizes .machine__prize:nth-child(6) {
  background: #7fd52a;
  top: 10.9em;
  left: 5em;
}
.machine__prizes .machine__prize:nth-child(7) {
  background: #2a43d5;
  top: 8.1em;
  left: 4.4em;
}
.machine__prizes .machine__prize:nth-child(8) {
  background: #d52ab2;
  top: 11.9em;
  left: 2.9em;
}
.machine__prizes .machine__prize:nth-child(9) {
  background: #d56b2a;
  top: 9.7em;
  left: 11.2em;
}
.machine__prizes .machine__prize:nth-child(10) {
  background: #2ad544;
  top: 10.4em;
  left: 7.1em;
}
.machine__prizes .machine__prize:nth-child(11) {
  background: #2ad5c4;
  top: 10.1em;
  left: 13.7em;
}
.machine__prizes .machine__prize:nth-child(12) {
  background: #2a4dd5;
  top: 11.9em;
  left: 12.4em;
}
.machine__prizes .machine__prize:nth-child(13) {
  background: #d52ad3;
  top: 10.4em;
  left: 0.1em;
}
.machine__prizes .machine__prize:nth-child(14) {
  background: #2a3dd5;
  top: 9.8em;
  left: 11.8em;
}
.machine__prizes .machine__prize:nth-child(15) {
  background: #aed52a;
  top: 11.5em;
  left: 10.8em;
}
.machine__prizes .machine__prize:nth-child(16) {
  background: #99d52a;
  top: 11.6em;
  left: 11em;
}
.machine__prizes .machine__prize:nth-child(17) {
  background: #d52aa0;
  top: 8.3em;
  left: 10.5em;
}
.machine__prizes .machine__prize:nth-child(18) {
  background: #76d52a;
  top: 11em;
  left: 5.2em;
}
.machine__prizes .machine__prize:nth-child(19) {
  background: #d57e2a;
  top: 9.8em;
  left: 13.3em;
}
.machine__prizes .machine__prize:nth-child(20) {
  background: #d5542a;
  top: 10.8em;
  left: 2.1em;
}
.machine__prizes .machine__prize:nth-child(21) {
  background: #732ad5;
  top: 11.7em;
  left: 2.8em;
}
.machine__prizes .machine__prize:nth-child(22) {
  background: #2acbd5;
  top: 11.4em;
  left: 3.9em;
}
.machine__prizes .machine__prize:nth-child(23) {
  background: #78d52a;
  top: 11.3em;
  left: 6em;
}
.machine__prizes .machine__prize:nth-child(24) {
  background: #d52acd;
  top: 11.6em;
  left: 4.2em;
}
.machine__prizes .machine__prize:nth-child(25) {
  background: #d5cb2a;
  top: 10.1em;
  left: 12.1em;
}
.machine__prizes .machine__prize:nth-child(26) {
  background: #2a2ad5;
  top: 11.4em;
  left: 3.4em;
}
.machine__prizes .machine__prize:nth-child(27) {
  background: #ae2ad5;
  top: 10.6em;
  left: 7.4em;
}
.machine__prizes .machine__prize:nth-child(28) {
  background: #d52a2d;
  top: 8.4em;
  left: 11.5em;
}
.machine__prizes .machine__prize:nth-child(29) {
  background: #2ac0d5;
  top: 9.2em;
  left: 0.2em;
}
.machine__prizes .machine__prize:nth-child(30) {
  background: #2a67d5;
  top: 9.7em;
  left: 3.8em;
}
.machine__prizes .machine__prize:nth-child(31) {
  background: #2a6dd5;
  top: 10.3em;
  left: 8.4em;
}
.machine__prizes .machine__prize:nth-child(32) {
  background: #2ad54a;
  top: 10em;
  left: 1.6em;
}
.machine__prizes .machine__prize:nth-child(33) {
  background: #2dd52a;
  top: 8.7em;
  left: 10em;
}
.machine__prizes .machine__prize:nth-child(34) {
  background: #7f2ad5;
  top: 8.9em;
  left: 0.2em;
}
.machine__prizes .machine__prize:nth-child(35) {
  background: #d52a94;
  top: 9.6em;
  left: 0.5em;
}
.machine__prizes .machine__prize:nth-child(36) {
  background: #2ad536;
  top: 11.7em;
  left: 1.2em;
}
.machine__prizes .machine__prize:nth-child(37) {
  background: #d52a4f;
  top: 10.1em;
  left: 11.6em;
}
.machine__prizes .machine__prize:nth-child(38) {
  background: #d56d2a;
  top: 8.1em;
  left: 7.4em;
}
.machine__prizes .machine__prize:nth-child(39) {
  background: #90d52a;
  top: 11.7em;
  left: 8.8em;
}
.machine__prizes .machine__prize:nth-child(40) {
  background: #d4d52a;
  top: 9.8em;
  left: 1.3em;
}
.machine__prizes .machine__prize:nth-child(41) {
  background: #2ad58a;
  top: 8.3em;
  left: 3.9em;
}
.machine__prizes .machine__prize:nth-child(42) {
  background: #d5bb2a;
  top: 10em;
  left: 5.9em;
}
.machine__prizes .machine__prize:nth-child(43) {
  background: #d5bf2a;
  top: 9.3em;
  left: 3.9em;
}
.machine__prizes .machine__prize:nth-child(44) {
  background: #2ad559;
  top: 9.2em;
  left: 2.9em;
}
.machine__prizes .machine__prize:nth-child(45) {
  background: #8dd52a;
  top: 11.6em;
  left: 7.6em;
}
.machine__prizes .machine__prize:nth-child(46) {
  background: #d52a30;
  top: 8.8em;
  left: 4.7em;
}
.machine__prizes .machine__prize:nth-child(47) {
  background: #2a45d5;
  top: 8.9em;
  left: 9.7em;
}
.machine__prizes .machine__prize:nth-child(48) {
  background: #d5b72a;
  top: 10.3em;
  left: 4.2em;
}
.machine__prizes .machine__prize:nth-child(49) {
  background: #2ad564;
  top: 8.1em;
  left: 7.3em;
}
.machine__prizes .machine__prize:nth-child(50) {
  background: #d52a3f;
  top: 9.7em;
  left: 5.1em;
}
.machine__prizes .machine__prize:nth-child(51) {
  background: #85d52a;
  top: 8.1em;
  left: 4.4em;
}
.machine__prizes .machine__prize:nth-child(52) {
  background: #2ad5bd;
  top: 9em;
  left: 13.6em;
}
.machine__prizes .machine__prize:nth-child(53) {
  background: #3bd52a;
  top: 11.1em;
  left: 3.4em;
}
.machine__prizes .machine__prize:nth-child(54) {
  background: #d52a55;
  top: 10.4em;
  left: 9.5em;
}
.machine__prizes .machine__prize:nth-child(55) {
  background: #682ad5;
  top: 8.3em;
  left: 13.7em;
}
.machine__prizes .machine__prize:nth-child(56) {
  background: #502ad5;
  top: 10.4em;
  left: 4.6em;
}
.machine__prizes .machine__prize:nth-child(57) {
  background: #9cd52a;
  top: 9em;
  left: 8em;
}
.machine__prizes .machine__prize:nth-child(58) {
  background: #d5522a;
  top: 10.5em;
  left: 11.8em;
}
.machine__prizes .machine__prize:nth-child(59) {
  background: #2a91d5;
  top: 10em;
  left: 5.9em;
}
.machine__prizes .machine__prize:nth-child(60) {
  background: #2ad5b0;
  top: 9.1em;
  left: 7.6em;
}
.machine__prizes:nth-child(3) {
  z-index: -4;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(1) {
  background: #6fd52a;
  top: 8.7em;
  left: 2.5em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(2) {
  background: #77d52a;
  top: 10.5em;
  left: 2.9em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(3) {
  background: #d52a67;
  top: 9.9em;
  left: 11.4em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(4) {
  background: #d5522a;
  top: 11.8em;
  left: 0.9em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(5) {
  background: #48d52a;
  top: 8.1em;
  left: 10.9em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(6) {
  background: #b62ad5;
  top: 10.2em;
  left: 2.7em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(7) {
  background: #d5922a;
  top: 9em;
  left: 4.9em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(8) {
  background: #d52a4e;
  top: 8.7em;
  left: 5.2em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(9) {
  background: #d55c2a;
  top: 10.6em;
  left: 9.1em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(10) {
  background: #2a86d5;
  top: 8.7em;
  left: 0em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(11) {
  background: #2a8ad5;
  top: 9.3em;
  left: 13.8em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(12) {
  background: #7d2ad5;
  top: 9.6em;
  left: 3.6em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(13) {
  background: #d5452a;
  top: 8.2em;
  left: 5em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(14) {
  background: #d5842a;
  top: 9.3em;
  left: 13.9em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(15) {
  background: #322ad5;
  top: 9.7em;
  left: 12em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(16) {
  background: #8b2ad5;
  top: 8.9em;
  left: 13em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(17) {
  background: #2abcd5;
  top: 9.6em;
  left: 12.9em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(18) {
  background: #2a36d5;
  top: 9.5em;
  left: 0.2em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(19) {
  background: #2ad57c;
  top: 11.8em;
  left: 12.1em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(20) {
  background: #74d52a;
  top: 11.4em;
  left: 1.5em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(21) {
  background: #6dd52a;
  top: 11em;
  left: 6.2em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(22) {
  background: #d52aab;
  top: 12em;
  left: 2.3em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(23) {
  background: #d52a43;
  top: 10.6em;
  left: 7.6em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(24) {
  background: #d52aa7;
  top: 10.4em;
  left: 12.3em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(25) {
  background: #2a92d5;
  top: 11em;
  left: 3.3em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(26) {
  background: #2a53d5;
  top: 8.6em;
  left: 1.6em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(27) {
  background: #76d52a;
  top: 9.7em;
  left: 0.9em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(28) {
  background: #792ad5;
  top: 8.3em;
  left: 10.1em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(29) {
  background: #792ad5;
  top: 10.2em;
  left: 4em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(30) {
  background: #d52a68;
  top: 8.5em;
  left: 5em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(31) {
  background: #d5c32a;
  top: 8.1em;
  left: 3em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(32) {
  background: #532ad5;
  top: 8.3em;
  left: 5.8em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(33) {
  background: #d5d32a;
  top: 11.6em;
  left: 10.2em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(34) {
  background: #2ac0d5;
  top: 10.9em;
  left: 1.9em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(35) {
  background: #d52a5b;
  top: 11.6em;
  left: 3.5em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(36) {
  background: #9d2ad5;
  top: 8.8em;
  left: 6.5em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(37) {
  background: #2aaed5;
  top: 11.7em;
  left: 10.8em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(38) {
  background: #a7d52a;
  top: 8.5em;
  left: 10.3em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(39) {
  background: #add52a;
  top: 8.7em;
  left: 6em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(40) {
  background: #8ad52a;
  top: 9.3em;
  left: 12.9em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(41) {
  background: #442ad5;
  top: 8.1em;
  left: 3em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(42) {
  background: #2ac8d5;
  top: 9.4em;
  left: 12em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(43) {
  background: #c02ad5;
  top: 10.6em;
  left: 13.2em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(44) {
  background: #d5672a;
  top: 10.9em;
  left: 7.8em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(45) {
  background: #d52aa8;
  top: 10.7em;
  left: 5.9em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(46) {
  background: #2ac9d5;
  top: 8em;
  left: 3.5em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(47) {
  background: #d5b02a;
  top: 11.4em;
  left: 13.1em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(48) {
  background: #d52a50;
  top: 10.6em;
  left: 4.7em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(49) {
  background: #2ad5cb;
  top: 11em;
  left: 13em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(50) {
  background: #6a2ad5;
  top: 10.7em;
  left: 13em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(51) {
  background: #d58a2a;
  top: 11em;
  left: 2.9em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(52) {
  background: #2a48d5;
  top: 10.6em;
  left: 7.4em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(53) {
  background: #2ad558;
  top: 10.5em;
  left: 8.3em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(54) {
  background: #d5772a;
  top: 9.5em;
  left: 10.7em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(55) {
  background: #2ad593;
  top: 10.9em;
  left: 6.2em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(56) {
  background: #642ad5;
  top: 10.8em;
  left: 12.1em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(57) {
  background: #2dd52a;
  top: 11.5em;
  left: 8em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(58) {
  background: #2a92d5;
  top: 11.8em;
  left: 1.7em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(59) {
  background: #d52a4a;
  top: 11.2em;
  left: 7.6em;
}
.machine__prizes:nth-child(3) .machine__prize:nth-child(60) {
  background: #2aa9d5;
  top: 10.9em;
  left: 2.2em;
}
.machine__prizes:nth-child(4) {
  transform: translateZ(-4em);
  z-index: -5;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(1) {
  background: #2ac8d5;
  top: 10.3em;
  left: 0.1em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(2) {
  background: #8ed52a;
  top: 12em;
  left: 11.9em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(3) {
  background: #d5bd2a;
  top: 8.7em;
  left: 6.6em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(4) {
  background: #d52a50;
  top: 10.9em;
  left: 0.3em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(5) {
  background: #2ad532;
  top: 10.1em;
  left: 3.4em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(6) {
  background: #2ad565;
  top: 10em;
  left: 9.9em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(7) {
  background: #2ad5ba;
  top: 9.2em;
  left: 3.6em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(8) {
  background: #9ed52a;
  top: 9.7em;
  left: 4em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(9) {
  background: #2ad578;
  top: 9.6em;
  left: 12.8em;
}
.machine__prizes:nth-child(4) .machine__prize:nth-child(10) {
  background: #2ad579;
  top: 10.6em;
  left: 13.3em;
}
.machine__pri.........完整代码请登录后点击上方下载按钮下载查看

网友评论0