
/*
*  功能:CSS3实现发光字体
*  日期:2020/2/19
*/
@charset "UTF-8";

html, body {
  min-height: 600px;
  overflow: hidden;
}

body {
  background: radial-gradient(circle, #00ea12, #1f9628, #1b491f, #000000);
}
.glow-wrapper {
  width: 100%;
  height: 600px;
}
.glow-stage {
  height: 300px;
  width: 500px;
  margin: auto;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  perspective: 999px;
  transform-style: preserve-3d;
}

.glow-layer {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
  opacity: 0;
  animation: ani-1 5s infinite alternate ease-in-out -7.5s, ani-2 0.1s 1;
  animation-fill-mode: forwards;
  transform: rotateY(40deg) rotateX(33deg) translateZ(0);
}

.glow-layer:after {
  font: 150px/0.65 'Pacifico', 'Kaushan Script', Futura, 'Roboto', 'Trebuchet MS', Helvetica, sans-serif;
  content: '我爱你\A\A XXXX!';
  white-space: pre;
  text-align: center;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 50px;
  color: whitesmoke;
  letter-spacing: -2px;
  text-shadow: 4px 0 10px rgba(0, 0, 0, 0.13);
}

.glow-layer:nth-child(1):after {
  transform: translateZ(0px);
}

.glow-layer:nth-child(2):after {
  transform: translateZ(-2px);
}

.glow-layer:nth-child(3):after {
  transform: translateZ(-4px);
}

.glow-layer:nth-child(4):after {
  transform: translateZ(-6px);
}

.glow-layer:nth-child(5):after {
  transform: translateZ(-8px);
}

.glow-layer:nth-child(6):after {
  transform: translateZ(-10px);
}

.glow-layer:nth-child(7):after {
  transform: translateZ(-12px);
}

.glow-layer:nth-child(8):after {
  transform: translateZ(-14px);
}

.glow-layer:nth-child(9):after {
  transform: translateZ(-16px);
}

.glow-layer:nth-child(10):after {
  transform: translateZ(-18px);
}

.glow-layer:nth-child(11):after {
  transform: translateZ(-20px);
}

.glow-layer:nth-child(12):after {
  transform: translateZ(-22px);
}

.glow-layer:nth-child(13):after {
  transform: translateZ(-24px);
}

.glow-layer:nth-child(14):after {
  transform: translateZ(-26px);
}

.glow-layer:nth-child(15):after {
  transform: translateZ(-28px);
}

.glow-layer:nth-child(16):after {
  transform: translateZ(-30px);
}

.glow-layer:nth-child(17):after {
  transform: translateZ(-32px);
}

.glow-layer:nth-child(18):after {
  transform: translateZ(-34px);
}

.glow-layer:nth-child(19):after {
  transform: translateZ(-36px);
}

.glow-layer:nth-child(20):after {
  transform: translateZ(-38px);
}

.glow-layer:nth-child(n+10):after {
  -webkit-text-stroke: 3px rgba(0, 0, 0, 0.25);
    
}

.glow-layer:nth-child(n+11):after {
  -webkit-text-stroke: 15px #1eff52;
  text-shadow: 6px 0 6px #006b10, 5px 5px 5px #005106, 0 6px 6px #006b10;
   
}

.glow-layer:nth-child(n+12):after {
  -webkit-text-stroke: 15px #00ea09;
   
}

.glow-layer:last-child:after {
  -webkit-text-stroke: 17px rgba(0, 0, 0, 0.1);
}

.glow-layer:first-child:after {
  color: #fff;
  text-shadow: none;
}

@keyframes ani-1{
  100% {
    transform: rotateY(-40deg) rotateX(-43deg);
  }
}
@keyframes ani-2 {
  100% {
    opacity: 1;
  }
}
