CSS
语言:
CSSSCSS
确定
.spinning-pixels-loader {
width: 10px;
height: 10px;
background: #f35626;
margin: 200px auto;
box-shadow: 15px 15px 0 0 #f35626, -15px -15px 0 0 #f35626, 15px -15px 0 0 #f35626, -15px 15px 0 0 #f35626, 0 15px 0 0 #f35626, 15px 0 0 0 #f35626, -15px 0 0 0 #f35626, 0 -15px 0 0 #f35626;
-webkit-animation: anim 2s linear infinite;
animation: anim 2s linear infinite;
}
@-webkit-keyframes anim {
0% {
-webkit-filter: hue-rotate(0deg);
}
50% {
box-shadow: 20px 20px 0 0 #f35626, -20px -20px 0 0 #f35626, 20px -20px 0 0 #f35626, -20px 20px 0 0 #f35626, 0 10px 0 0 #f35626, 10px 0 0 0 #f35626, -10px 0 0 0 #f35626, 0 -10px 0 0 #f35626;
}
75% {
box-shadow: 20px 20px 0 0 #f35626, -20px -20px 0 0 #f35626, 20px -20px 0 0 #f35626, -20px 20px 0 0 #f35626, 0 10px 0 0 #f35626, 10px 0 0 0 #f35626, -10px 0 0 0 #f35626, 0 -10px 0 0 #f35626;
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
-webkit-filter: hue-rotate(360deg);
}
}
@keyframes anim {
0% {
-webkit-filter: hue-rotate(0deg);
}
50% {
box-shadow: 20px 20px 0 0 #f35626, -20px -20px 0 0 #f35626, 20px -20px 0 0 #f35626, -20px 20px 0 0 #f35626, 0 10px 0 0 #f35626, 10px 0 0 0 #f35626, -10px 0 0 0 #f35626, 0 -10px 0 0 #f35626;
}
75% {
box-shadow: 20px 20px 0 0 #f35626, -20px -20px 0 0 #f35626, 20px -20px 0 0 #f35626, -20px 20px 0 0 #f35626, 0 10px 0 0 #f35626, 10px 0 0 0 #f35626, -10px 0 0 0 #f35626, 0 -10px 0 0 #f35626;
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
-webkit-filter: hue-rotate(360deg);
}
}