CSS
语言:
CSSSCSS
确定
body {
background-color: #313640;
overflow: hidden;
}
.grid {
top: -400px;
bottom: -400px;
left: -400px;
right: -400px;
position: absolute;
background-color: #313640;
background-image: -webkit-linear-gradient(#ff0092 1px, transparent 2px), -webkit-linear-gradient(0deg, #ff0092 1px, transparent 2px);
background-image: linear-gradient(#ff0092 1px, transparent 2px), linear-gradient(90deg, #ff0092 1px, transparent 2px);
background-size: 3% 3%, 3% 3%;
background-position: 0 0, 0 0;
-webkit-transform: perspective(300px) rotateX(80deg);
transform: perspective(300px) rotateX(80deg);
}
.eightys-text {
color: #ff0092;
font-family: 'Audiowide', cursive;
font-size: 30px;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
text-align: center;
height: 80px;
margin: auto;
text-shadow: 0 0 12px rgba(186, 1, 255, 0.8);
}
label {
font-family: 'Audiowide', cursive;
color: #ff0092;
text-shadow: 0 0 12px rgba(186, 1, 255, 0.8);
}
input:checked ~ .grid {
-webkit-animation: throughSpace 2s linear;
animation: throughSpace 2s linear;
-webkit-animation-iteration-count: infinite;
animation-iteration-count: infinite;
}
@-webkit-keyframes throughSpace {
0% {
-webkit-transform: perspective(300px) rotateX(80deg) translateY(0%);
transform: perspective(300px) rotateX(80deg) translateY(0%);
}
100% {
-webkit-transform: perspective(300px) rotateX(80deg) translateY(5.8%);
transform: perspective(300px) rotateX(80deg) translateY(5.8%);
}
}
@keyframes throughSpace {
0% {
-webkit-transform: perspective(300px) rotateX(80deg) translateY(0%);
transform: perspective(300px) rotateX(80deg) translateY(0%);
}
100% {
-webkit-transform: perspective(300px) rotateX(80deg) translateY(5.8%);
transform: perspective(300px) rotateX(80deg) translateY(5.8%);
}
}