CSS
语言:
CSSSCSS
确定
body {
background-color: #141414;
margin: 0;
padding: 0;
height: 100%;
}
.content {
width: 300px;
height: 300px;
position: absolute;
top: 50%;
left: 50%;
margin-top: -150px;
margin-left: -150px;
}
.inspiration {
font-size: 14px;
text-align: center;
color: #d0d0d0;
position: absolute;
bottom: 10px;
width: 100%;
}
a {
color: #ffd646;
text-decoration: none;
transition: color 0.3s ease;
}
a:hover {
color: #cb662b;
}
.circles .circle {
display: block !important;
width: 10px !important;
height: 10px !important;
border-radius: 5px !important;
}
.circles .content {
-webkit-animation: rotateContent 25s linear infinite;
animation: rotateContent 25s linear infinite;
}
.circle-container {
position: absolute;
top: 50%;
margin-top: -5px;
left: 50%;
margin-left: -5px;
}
.circle-container .circle {
-webkit-transform: translate3D(-100px, 0, 0);
transform: translate3D(-100px, 0, 0);
}
.circle-container.color1 .circle {
background: #ffd646;
}
.circle-container.color2 .circle {
background: #cb662b;
}
.circle-container.color3 .circle {
background: #509590;
}
.circle-container.color4 .circle {
background: #624092;
}
.circle-container.color1 .circle {
-webkit-animation: movingFirstColor 2.5s ease-in-out infinite alternate;
animation: movingFirstColor 2.5s ease-in-out infinite alternate;
}
.circle-container.color2 .circle {
-webkit-animation: movingSecondColor 2.5s ease-in-out infinite alternate;
animation: movingSecondColor 2.5s ease-in-out infinite alternate;
}
.circle-container.color3 .circle {
-webkit-animation: movingThirdColor 2.5s ease-in-out infinite alternate;
animation: movingThirdColor 2.5s ease-in-out infinite alternate;
}
.circle-container-2 {
-webkit-transform: rotate(24deg);
transform: rotate(24deg);
}
.circle-container-3 {
-webkit-transform: rotate(48deg);
transform: rotate(48deg);
}
.circle-container-4 {
-webkit-transform: rotate(72deg);
transform: rotate(72deg);
}
.circle-container-5 {
-webkit-transform: rotate(96deg);
transform: rotate(96deg);
}
.circle-container-6 {
-webkit-transform: rotate(120deg);
transform: rotate(120deg);
}
.circle-container-7 {
-webkit-transform: rotate(144deg);
transform: rotate(144deg);
}
.circle-container-8 {
-webkit-transform: rotate(168deg);
transform: rotate(168deg);
}
.circle-container-9 {
-webkit-transform: rotate(192deg);
transform: rotate(192deg);
}
.circle-container-10 {
-webkit-transform: rotate(216deg);
transform: rotate(216deg);
}
.circle-container-11 {
-webkit-transform: rotate(240deg);
transform: rotate(240deg);
}
.circle-container-12 {
-webkit-transform: rotate(264deg);
transform: rotate(264deg);
}
.circle-container-13 {
-webkit-transform: rotate(288deg);
transform: rotate(288deg);
}
.circle-container-14 {
-webkit-transform: rotate(312deg);
transform: rotate(312deg);
}
.circle-container-15 {
-webkit-transform: rotate(336deg);
transform: rotate(336deg);
}
.circles .circle-container-2 .circle {
-webkit-animation-delay: 0.1s;
animation-delay: 0.1s;
}
.circles .circle-container-3 .circle {
-webkit-animation-delay: 0.2s;
animation-delay: 0.2s;
}
.circles .circle-container-4 .circle {
-webkit-animation-delay: 0.3s;
animation-delay: 0.3s;
}
.circles .circle-container-5 .circle {
-webkit-animation-delay: 0.4s;
animation-delay: 0.4s;
}
.circles .circle-container-6 .circle {
-webkit-animation-delay: 0.5s;
animation-delay: 0.5s;
}
.circles .circle-container-7 .circle {
-webkit-animation-delay: 0.6s;
animation-delay: 0.6s;
}
.circles .circle-container-8 .circle {
-webkit-animation-delay: 0.7s;
animation-delay: 0.7s;
}
.circles .circle-container-9 .circle {
-webkit-animation-delay: 0.8s;
animation-delay: 0.8s;
}
.circles .circle-container-10 .circle {
-webkit-animation-delay: 0.9s;
animation-delay: 0.9s;
}
.circles .circle-container-11 .circle {
-webkit-animation-delay: 1s;
animation-delay: 1s;
}
.circles .circle-container-12 .circle {
-webkit-animation-delay: 1.1s;
animation-delay: 1.1s;
}
.circles .circle-container-13 .circle {
-webkit-animation-delay: 1.2s;
animation-delay: 1.2s;
}
.circles .circle-container-14 .circle {
-webkit-animation-delay: 1.3s;
animation-delay: 1.3s;
}
.circles .circle-container-15 .circle {
-webkit-animation-delay: 1.4s;
animation-delay: 1.4s;
}
@-webkit-keyframes movingFirstColor {
0% {
-webkit-transform: translate3D(-100px, 0, 0);
transform: translate3D(-100px, 0, 0);
width: 10px;
opacity: 1;
box-shadow: 0px 0px 0px 0px #ffd646;
}
33% {
-webkit-transform: translate3D(-100px, 0, 0);
transform: translate3D(-100px, 0, 0);
width: 10px;
opacity: 1;
box-shadow: 0px 0px 0px 0px #ffd646;
}
50% {
width: 30px;
opacity: 0.7;
box-shadow: 3px 0px 5px 0px #ffd646;
}
66% {
-webkit-transform: translate3D(100px, 0, 0);
transform: translate3D(100px, 0, 0);
width: 10px;
box-shadow: 0px 0px 0px 0px #ffd646;
}
100% {
width: 10px;
opacity: 1;
-webkit-transform: translate3D(100px, 0, 0);
transform: translate3D(100px, 0, 0);
box-shadow: 0px 0px 0px 0px #ffd646;
}
}
@keyframes movingFirstColor {
0% {
-webkit-transform: translate3D(-100px, 0, 0);
transform: translate3D(-100px, 0, 0);
width: 10px;
opacity: 1;
box-shadow: 0px 0px 0px 0px #ffd646;
}
33% {
-webkit-transform: translate3D(-100px, 0, 0);
transform: translate3D(-100px, 0, 0);
width: 10px;
opacity: 1;
box-shadow: 0px 0px 0px 0px #ffd646;
}
50% {
width: 30px;
opacity: 0.7;
box-shadow: 3px 0px 5px 0px #ffd646;
}
66% {
-webkit-transform: translate3D(100px, 0, 0);
transform: translate3D(100px, 0, 0);
width: 10px;
box-shadow: 0px 0px 0px 0px #ffd646;
}
100% {
width: 10px;
opacity: 1;
-webkit-transform: translate3D(100px, 0, 0);
transform: translate3D(100px, 0, 0);
box-shadow: 0px 0px 0px 0px #ffd646;
}
}
@-webkit-keyframes movingSecondColor {
0% {
-webkit-transform: translate3D(-100px, 0, 0);
transform: translate3D(-100px, 0, 0);
width: 10px;
opacity: 1;
box-shadow: 0px 0px 0px 0px #cb662b;
}
33% {
-webkit-transform: translate3D(-100px, 0, 0);
transform: translate3D(-100px, 0, 0);
width: 10px;
opacity: 1;
box-shadow: 0px 0px 0px 0px #cb662b;
}
50% {
width: 30px;
opacity: 0.7;
box-shadow: 3px 0px 5px 0px #cb662b;
}
66% {
-webkit-transform: translate3D(100px, 0, 0);
transform: translate3D(100px, 0, 0);
width: 10px;
box-shadow: 0px 0px 0px 0px #cb662b;
}
100% {
width: 10px;
opacity: 1;
-webkit-transform: translate3D(100px, 0, 0);
transform: translate3D(100px, 0, 0);
box-shadow: 0px 0px 0px 0px #cb662b;
}
}
@keyframes movingSecondColor {
0% {
-webkit-transform: translate3D(-100px, 0, 0);
transform: translate3D(-100px, 0, 0);
width: 10px;
opacity: 1;
box-shadow: 0px 0px 0px 0px #cb662b;
}
33% {
-webkit-transform: translate3D(-100px, 0, 0);
transform: translate3D(-100px, 0, 0);
width: 10px;
opacity: 1;
box-shadow: 0px 0px 0px 0px #cb662b;
}
50% {
width: 30px;
opacity: 0.7;
box-shadow: 3px 0px 5px 0px #cb662b;
}
66% {
-webkit-transform: translate3D(100px, 0, 0);
transform: translate3D(100px, 0, 0);
width: 10px;
box-shadow: 0px 0px 0px 0px #cb662b;
}
100% {
width: 10px;
opacity: 1;
-webkit-transform: translate3D(100px, 0, 0);
transform: translate3D(100px, 0, 0);
box-shadow: 0px 0px 0px 0px #cb662b;
}
}
@-webkit-keyframes movingThirdColor {
0% {
-webkit-transform: translate3D(-100px, 0, 0);
transform: translate3D(-100px, 0, 0);
width: 10px;
opacity: 1;
box-shadow: 0px 0px 0px 0px #509590;
}
33% {
-webkit-transform: translate3D(-100px, 0, 0);
transform: translate3D(-100px, 0, 0);
width: 10px;
opacity: 1;
box-shadow: 0px 0px 0px 0px #509590;
}
50% {
width: 30px;
opacity: 0.7;
box-shadow: 3px 0px 5px 0px #509590;
}
66% {
-webkit-transform: translate3D(100px, 0, 0);
transform: translate3D(100px, 0, 0);
width: 10px;
box-shadow: 0px 0px 0px 0px #509590;
}
100% {
width: 10px;
opacity: 1;
-webkit-transform: translate3D(100px, 0, 0);
transform: translate3D(100px, 0, 0);
box-shadow: 0px 0px 0px 0px #509590;
}
}
@keyframes movingThirdColor {
0% {
-webkit-transform: translate3D(-100px, 0, 0);
transform: translate3D(-100px, 0, 0);
width: 10px;
opacity: 1;
box-shadow: 0px 0px 0px 0px #509590;
}
33% {
-webkit-transform: translate3D(-100px, 0, 0);
transform: translate3D(-100px, 0, 0);
width: 10px;
opacity: 1;
box-shadow: 0px 0px 0px 0px #509590;
}
50% {
width: 30px;
opacity: 0.7;
box-shadow: 3px 0px 5px 0px #509590;
}
66% {
-webkit-transform: translate3D(100px, 0, 0);
transform: translate3D(100px, 0, 0);
width: 10px;
box-shadow: 0px 0px 0px 0px #509590;
}
100% {
width: 10px;
opacity: 1;
-webkit-transform: translate3D(100px, 0, 0);
transform: translate3D(100px, 0, 0);
box-shadow: 0px 0px 0px 0px #509590;
}
}
@-webkit-keyframes rotateContent {
from {
-webkit-transform: rotate(0);
transform: rotate(0);
}
to {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes rotateContent {
from {
-webkit-transform: rotate(0);
transform: rotate(0);
}
to {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}