css
@keyframes fadeInOut {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
@keyframes loadingMove {
0% {
left: 0;
}
100% {
left: 100%;
}
}
@keyframes circleRun {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
@keyframes shake {
0% {
left: 41px;
}
100% {
left: 49px;
}
}
@keyframes upDown {
0% {
top: 41px;
}
100% {
top: 49px;
}
}
@keyframes showTip {
0% {
top: -50px;
opacity: 0;
display: none;
}
1% {
top: -50px;
opacity: 0;
display: block;
}
10% {
top: 201px;
opacity: 100;
}
90% {
top: 201px;
opacity: 100;
}
99% {
top: -50px;
opacity: 0;
}
100% {
top: -50px;
opacity: 0;
display: none;
}
}
body {
color: #fff;
background: #00090e;
}
.showPrecent div {
animation-fill-mode: forwards !important;
}
.show1.toCenter .showPrecent div:nth-child(1) {
animation: fadeInOut 0.15s linear 0s 1 normal;
}
.show2.toCenter .showPrecent div:nth-child(1) {
animation: fadeInOut 0.15s linear 0s 1 normal;
}
.show2.toCenter .showPrecent div:nth-child(2) {
animation: fadeInOut 0.15s linear 0.1s 1 normal;
}
.show3.toCenter .showPrecent div:nth-child(1) {
animation: fadeInOut 0.15s linear 0s 1 normal;
}
.show3.toCenter .showPrecent div:nth-child(2) {
animation: fadeInOut 0.15s linear 0.1s 1 normal;
}
.show3.toCenter .showPrecent div:nth-child(3) {
animation: fadeInOut 0.15s linear 0.2s 1 normal;
}
.show4.toCenter .showPrecent div:nth-child(1) {
animation: fadeInOut 0.15s linear 0s 1 normal;
}
.show4.toCenter .showPrecent div:nth-child(2) {
animation: fadeInOut 0.15s linear 0.1s 1 normal;
}
.show4.toCenter .showPrecent div:nth-child(3) {
animation: fadeInOut 0.15s linear 0.2s 1 normal;
}
.show4.toCenter .showPrecent div:nth-child(4) {
animation: fadeInOut 0.15s linear 0.3s 1 normal;
}
.show5.toCenter .showPrecent div:nth-child(1) {
animation: fadeInOut 0.15s linear 0s 1 normal;
}
.show5.toCenter .showPrecent div:nth-child(2) {
animation: fadeInOut 0.15s linear 0.1s 1 normal;
}
.show5.toCenter .showPrecent div:nth-child(3) {
animation: fadeInOut 0.15s linear 0.2s 1 normal;
}
.show5.toCenter .showPrecent div:nth-child(4) {
animation: fadeInOut 0.15s linear 0.3s 1 normal;
}
.show5.toCenter .showPrecent div:nth-child(5) {
animation: fadeInOut 0.15s linear 0.4s 1 normal;
}
.show6.toCenter .showPrecent div:nth-child(1) {
animation: fadeInOut 0.15s linear 0s 1 normal;
}
.show6.toCenter .showPrecent div:nth-child(2) {
animation: fadeInOut 0.15s linear 0.1s 1 normal;
}
.show6.toCenter .showPrecent div:nth-child(3) {
animation: fadeInOut 0.15s linear 0.2s 1 normal;
}
.show6.toCenter .showPrecent div:nth-child(4) {
animation: fadeInOut 0.15s linear 0.3s 1 normal;
}
.show6.toCenter .showPrecent div:nth-child(5) {
animation: fadeInOut 0.15s linear 0.4s 1 normal;
}
.show6.toCenter .showPrecent div:nth-child(6) {
animation: fadeInOut 0.15s linear 0.5s 1 normal;
}
.show7.toCenter .showPrecent div:nth-child(1) {
animation: fadeInOut 0.15s linear 0s 1 normal;
}
.show7.toCenter .showPrecent div:nth-child(2) {
animation: fadeInOut 0.15s linear 0.1s 1 normal;
}
.show7.toCenter .showPrecent div:nth-child(3) {
animation: fadeInOut 0.15s linear 0.2s 1 normal;
}
.show7.toCenter .showPrecent div:nth-child(4) {
animation: fadeInOut 0.15s linear 0.3s 1 normal;
}
.show7.toCenter .showPrecent div:nth-child(5) {
animation: fadeInOut 0.15s linear 0.4s 1 normal;
}
.show7.toCenter .showPrecent div:nth-child(6) {
animation: fadeInOut 0.15s linear 0.5s 1 normal;
}
.show7.toCenter .showPrecent div:nth-child(7) {
animation: fadeInOut 0.15s linear 0.6s 1 normal;
}
.show8.toCenter .showPrecent div:nth-child(1) {
animation: fadeInOut 0.15s linear 0s 1 normal;
}
.show8.toCenter .showPrecent div:nth-child(2) {
animation: fadeInOut 0.15s linear 0.1s 1 normal;
}
.show8.toCenter .showPrecent div:nth-child(3) {
animation: fadeInOut 0.15s linear 0.2s 1 normal;
}
.show8.toCenter .showPrecent div:nth-child(4) {
animation: fadeInOut 0.15s linear 0.3s 1 normal;
}
.show8.toCenter .showPrecent div:nth-child(5) {
animation: fadeInOut 0.15s linear 0.4s 1 normal;
}
.show8.toCenter .showPrecent div:nth-child(6) {
animation: fadeInOut 0.15s linear 0.5s 1 normal;
}
.show8.toCenter .showPrecent div:nth-child(7) {
animation: fadeInOut 0.15s linear 0.6s 1 normal;
}
.show8.toCenter .showPrecent div:nth-child(8) {
animation: fadeInOut 0.15s linear 0.7s 1 normal;
}
.show9.toCenter .showPrecent div:nth-child(1) {
animation: fadeInOut 0.15s linear 0s 1 normal;
}
.show9.toCenter .showPrecent div:nth-child(2) {
animation: fadeInOut 0.15s linear 0.1s 1 normal;
}
.show9.toCenter .showPrecent div:nth-child(3) {
animation: fadeInOut 0.15s linear 0.2s 1 normal;
}
.show9.toCenter .showPrecent div:nth-child(4) {
animation: fadeInOut 0.15s linear 0.3s 1 normal;
}
.show9.toCenter .showPrecent div:nth-child(5) {
animation: fadeInOut 0.15s linear 0.4s 1 normal;
}
.show9.toCenter .showPrecent div:nth-child(6) {
animation: fadeInOut 0.15s linear 0.5s 1 normal;
}
.show9.toCenter .showPrecent div:nth-child(7) {
animation: fadeInOut 0.15s linear 0.6s 1 normal;
}
.show9.toCenter .showPrecent div:nth-child(8) {
animation: fadeInOut 0.15s linear 0.7s 1 normal;
}
.show9.toCenter .showPrecent div:nth-child(9) {
animation: fadeInOut 0.15s linear 0.8s 1 normal;
}
.show10.toCenter .showPrecent div:nth-child(1) {
animation: fadeInOut 0.15s linear 0s 1 normal;
}
.show10.toCenter .showPrecent div:nth-child(2) {
animation: fadeInOut 0.15s linear 0.1s 1 normal;
}
.show10.toCenter .showPrecent div:nth-child(3) {
animation: fadeInOut 0.15s linear 0.2s 1 normal;
}
.show10.toCenter .showPrecent div:nth-child(4) {
animation: fadeInOut 0.15s linear 0.3s 1 normal;
}
.show10.toCenter .showPrecent div:nth-child(5) {
animation: fadeInOut 0.15s linear 0.4s 1 normal;
}
.show10.toCenter .showPrecent div:nth-child(6) {
animation: fadeInOut 0.15s linear 0.5s 1 normal;
}
.show10.toCenter .showPrecent div:nth-child(7) {
animation: fadeInOut 0.15s linear 0.6s 1 normal;
}
.show10.toCenter .showPrecent div:nth-child(8) {
animation: fadeInOut 0.15s linear 0.7s 1 normal;
}
.show10.toCenter .showPrecent div:nth-child(9) {
animation: fadeInOut 0.15s linear 0.8s 1 normal;
}
.show10.toCenter .showPrecent div:nth-child(10) {
animation: fadeInOut 0.15s linear 0.9s 1 normal;
}
.show11.toCenter .showPrecent div:nth-child(1) {
animation: fadeInOut 0.15s linear 0s 1 normal;
}
.show11.toCenter .showPrecent div:nth-child(2) {
animation: fadeInOut 0.15s linear 0.1s 1 normal;
}
.show11.toCenter .showPrecent div:nth-child(3) {
animation: fadeInOut 0.15s linear 0.2s 1 normal;
}
.show11.toCenter .showPrecent div:nth-child(4) {
animation: fadeInOut 0.15s linear 0.3s 1 normal;
}
.show11.toCenter .showPrecent div:nth-child(5) {
animation: fadeInOut 0.15s linear 0.4s 1 normal;
}
.show11.toCenter .showPrecent div:nth-child(6) {
animation: fadeInOut 0.15s linear 0.5s 1 normal;
}
.show11.toCenter .showPrecent div:nth-child(7) {
animation: fadeInOut 0.15s linear 0.6s 1 normal;
}
.show11.toCenter .showPrecent div:nth-child(8) {
animation: fadeInOut 0.15s linear 0.7s 1 normal;
}
.show11.toCenter .showPrecent div:nth-child(9) {
animation: fadeInOut 0.15s linear 0.8s 1 normal;
}
.show11.toCenter .showPrecent div:nth-child(10) {
animation: fadeInOut 0.15s linear 0.9s 1 normal;
}
.show11.toCenter .showPrecent div:nth-child(11) {
animation: fadeInOut 0.15s linear 1s 1 normal;
}
.show12.toCenter .showPrecent div:nth-child(1) {
animation: fadeInOut 0.15s linear 0s 1 normal;
}
.show12.toCenter .showPrecent div:nth-child(2) {
animation: fadeInOut 0.15s linear 0.1s 1 normal;
}
.show12.toCenter .showPrecent div:nth-child(3) {
animation: fadeInOut 0.15s linear 0.2s 1 normal;
}
.show12.toCenter .showPrecent div:nth-child(4) {
animation: fadeInOut 0.15s linear 0.3s 1 normal;
}
.show12.toCenter .showPrecent div:nth-child(5) {
animation: fadeInOut 0.15s linear 0.4s 1 normal;
}
.show12.toCenter .showPrecent div:nth-child(6) {
animation: fadeInOut 0.15s linear 0.5s 1 normal;
}
.show12.toCenter .showPrecent div:nth-child(7) {
animation: fadeInOut 0.15s linear 0.6s 1 normal;
}
.show12.toCenter .showPrecent div:nth-child(8) {
animation: fadeInOut 0.15s linear 0.7s 1 normal;
}
.show12.toCenter .showPrecent div:nth-child(9) {
animation: fadeInOut 0.15s linear 0.8s 1 normal;
}
.show12.toCenter .showPrecent div:nth-child(10) {
animation: fadeInOut 0.15s linear 0.9s 1 normal;
}
.show12.toCenter .showPrecent div:nth-child(11) {
animation: fadeInOut 0.15s linear 1s 1 normal;
}
.show12.toCenter .showPrecent div:nth-child(12) {
animation: fadeInOut 0.15s linear 1.1s 1 normal;
}
.show13.toCenter .showPrecent div:nth-child(1) {
animation: fadeInOut 0.15s linear 0s 1 normal;
}
.show13.toCenter .showPrecent div:nth-child(2) {
animation: fadeInOut 0.15s linear 0.1s 1 normal;
}
.show13.toCenter .showPrecent div:nth-child(3) {
animation: fadeInOut 0.15s linear 0.2s 1 normal;
}
.show13.toCenter .showPrecent div:nth-child(4) {
animation: fadeInOut 0.15s linear 0.3s 1 normal;
}
.show13.toCenter .showPrecent div:nth-child(5) {
animation: fadeInOut 0.15s linear 0.4s 1 normal;
}
.show13.toCenter .showPrecent div:nth-child(6) {
animation: fadeInOut 0.15s linear 0.5s 1 normal;
}
.show13.toCenter .showPrecent div:nth-child(7) {
animation: fadeInOut 0.15s linear 0.6s 1 normal;
}
.show13.toCenter .showPrecent div:nth-child(8) {
animation: fadeInOut 0.15s linear 0.7s 1 normal;
}
.show13.toCenter .showPrecent div:nth-child(9) {
animation: fadeInOut 0.15s linear 0.8s 1 normal;
}
.show13.toCenter .showPrecent div:nth-child(10) {
animation: fadeInOut 0.15s linear 0.9s 1 normal;
}
.show13.toCenter .showPrecent div:nth-child(11) {
animation: fadeInOut 0.15s linear 1s 1 normal;
}
.show13.toCenter .showPrecent div:nth-child(12) {
animation: fadeInOut 0.15s linear 1.1s 1 normal;
}
.show13.toCenter .showPrecent div:nth-child(13) {
animation: fadeInOut 0.15s linear 1.2s 1 normal;
}
.show14.toCenter .showPrecent div:nth-child(1) {
animation: fadeInOut 0.15s linear 0s 1 normal;
}
.show14.toCenter .showPrecent div:nth-child(2) {
animation: fadeInOut 0.15s linear 0.1s 1 normal;
}
.show14.toCenter .showPrecent div:nth-child(3) {
animation: fadeInOut 0.15s linear 0.2s 1 normal;
}
.show14.toCenter .showPrecent div:nth-child(4) {
animation: fadeInOut 0.15s linear 0.3s 1 normal;
}
.show14.toCenter .showPrecent div:nth-child(5) {
animation: fadeInOut 0.15s linear 0.4s 1 normal;
}
.show14.toCenter .showPrecent div:nth-child(6) {
animation: fadeInOut 0.15s linear 0.5s 1 normal;
}
.show14.toCenter .showPrecent div:nth-child(7) {
animation: fadeInOut 0.15s linear 0.6s 1 normal;
}
.show14.toCenter .showPrecent div:nth-child(8) {
animation: fadeInOut 0.15s linear 0.7s 1 normal;
}
.show14.toCenter .showPrecent div:nth-child(9) {
animation: fadeInOut 0.15s linear 0.8s 1 normal;
}
.show14.toCenter .showPrecent div:nth-child(10) {
animation: fadeInOut 0.15s linear 0.9s 1 normal;
}
.show14.toCenter .showPrecent div:nth-child(11) {
animation: fadeInOut 0.15s linear 1s 1 normal;
}
.show14.toCenter .showPrecent div:nth-child(12) {
animation: fadeInOut 0.15s linear 1.1s 1 normal;
}
.show14.toCenter .showPrecent div:nth-child(13) {
animation: fadeInOut 0.15s linear 1.2s 1 normal;
}
.show14.toCenter .showPrecent div:nth-child(14) {
animation: fadeInOut 0.15s linear 1.3s 1 normal;
}
.show15.toCenter .showPrecent div:nth-child(1) {
animation: fadeInOut 0.15s linear 0s 1 normal;
}
.show15.toCenter .showPrecent div:nth-child(2) {
animation: fadeInOut 0.15s linear 0.1s 1 normal;
}
.show15.toCenter .showPrecent div:nth-child(3) {
animation: fadeInOut 0.15s linear 0.2s 1 normal;
}
.show15.toCenter .showPrecent div:nth-child(4) {
animation: fadeInOut 0.15s linear 0.3s 1 normal;
}
.show15.toCenter .showPrecent div:nth-child(5) {
animation: fadeInOut 0.15s linear 0.4s 1 normal;
}
.show15.toCenter .showPrecent div:nth-child(6) {
animation: fadeInOut 0.15s linear 0.5s 1 normal;
}
.show15.toCenter .showPrecent div:nth-child(7) {
animation: fadeInOut 0.15s linear 0.6s 1 normal;
}
.show15.toCenter .showPrecent div:nth-child(8) {
animation: fadeInOut 0.15s linear 0.7s 1 normal;
}
.show15.toCenter .showPrecent div:nth-child(9) {
animation: fadeInOut 0.15s linear 0.8s 1 normal;
}
.show15.toCenter .showPrecent div:nth-child(10) {
animation: fadeInOut 0.15s linear 0.9s 1 normal;
}
.show15.toCenter .showPrecent div:nth-child(11) {
animation: fadeInOut 0.15s linear 1s 1 normal;
}
.show15.toCenter .showPrecent div:nth-child(12) {
animation: fadeInOut 0.15s linear 1.1s 1 normal;
}
.show15.toCenter .showPrecent div:nth-child(13) {
animation: fadeInOut 0.15s linear 1.2s 1 normal;
}
.show15.toCenter .showPrecent div:nth-child(14) {
animation: fadeInOut 0.15s linear 1.3s 1 normal;
}
.show15.toCenter .showPrecent div:nth-child(15) {
animation: fadeInOut 0.15s linear 1.4s 1 normal;
}
.show16.toCenter .showPrecent div:nth-child(1) {
animation: fadeInOut 0.15s linear 0s 1 normal;
}
.show16.toCenter .showPrecent div:nth-child(2) {
animation: fadeInOut 0.15s linear 0.1s 1 normal;
}
.show16.toCenter .showPrecent div:nth-child(3) {
animation: fadeInOut 0.15s linear 0.2s 1 normal;
}
.show16.toCenter .showPrecent div:nth-child(4) {
animation: fadeInOut 0.15s linear 0.3s 1 normal;
}
.show16.toCenter .showPrecent div:nth-child(5) {
animation: fadeInOut 0.15s linear 0.4s 1 normal;
}
.show16.toCenter .showPrecent div:nth-child(6) {
animation: fadeInOut 0.15s linear 0.5s 1 normal;
}
.show16.toCenter .showPrecent div:nth-child(7) {
animation: fadeInOut 0.15s linear 0.6s 1 normal;
}
.show16.toCenter .showPrecent div:nth-child(8) {
animation: fadeInOut 0.15s linear 0.7s 1 normal;
}
.show16.toCenter .showPrecent div:nth-child(9) {
animation: fadeInOut 0.15s linear 0.8s 1 normal;
}
.show16.toCenter .showPrecent div:nth-child(10) {
animation: fadeInOut 0.15s linear 0.9s 1 normal;
}
.show16.toCenter .showPrecent div:nth-child(11) {
animation: fadeInOut 0.15s linear 1s 1 normal;
}
.show16.toCenter .showPrecent div:nth-child(12) {
animation: fadeInOut 0.15s linear 1.1s 1 normal;
}
.show16.toCenter .showPrecent div:nth-child(13) {
animation: fadeInOut 0.15s linear 1.2s 1 normal;
}
.show16.toCenter .showPrecent div:nth-child(14) {
animation: fadeInOut 0.15s linear 1.3s 1 normal;
}
.show16.toCenter .showPrecent div:nth-child(15) {
animation: fadeInOut 0.15s linear 1.4s 1 normal;
}
.show16.toCenter .showPrecent div:nth-child(16) {
animation: fadeInOut 0.15s linear 1.5s 1 normal;
}
.show17.toCenter .showPrecent div:nth-child(1) {
animation: fadeInOut 0.15s linear 0s 1 normal;
}
.show17.toCenter .showPrecent div:nth-child(2) {
animation: fadeInOut 0.15s linear 0.1s 1 normal;
}
.show17.toCenter .showPrecent div:nth-child(3) {
animation: fadeInOut 0.15s linear 0.2s 1 normal;
}
.show17.toCenter .showPrecent div:nth-child(4) {
animation: fadeInOut 0.15s linear 0.3s 1 normal;
}
.show17.toCenter .showPrecent div:nth-child(5) {
animation: fadeInOut 0.15s linear 0.4s 1 normal;
}
.show17.toCenter .showPrecent div:nth-child(6) {
animation: fadeInOut 0.15s linear 0.5s 1 normal;
}
.show17.toCenter .showPrecent div:nth-child(7) {
animation: fadeInOut 0.15s linear 0.6s 1 normal;
}
.show17.toCenter .showPrecent div:nth-child(8) {
animation: fadeInOut 0.15s linear 0.7s 1 normal;
}
.show17.toCenter .showPrecent div:nth-child(9) {
animation: fadeInOut 0.15s linear 0.8s 1 normal;
}
.show17.toCenter .showPrecent div:nth-child(10) {
animation: fadeInOut 0.15s linear 0.9s 1 normal;
}
.show17.toCenter .showPrecent div:nth-child(11) {
animation: fadeInOut 0.15s linear 1s 1 normal;
}
.show17.toCenter .showPrecent div:nth-child(12) {
animation: fadeInOut 0.15s linear 1.1s 1 normal;
}
.show17.toCenter .showPrecent div:nth-child(13) {
animation: fadeInOut 0.15s linear 1.2s 1 normal;
}
.show17.toCenter .showPrecent div:nth-child(14) {
animation: fadeInOut 0.15s linear 1.3s 1 normal;
}
.show17.toCenter .showPrecent div:nth-child(15) {
animation: fadeInOut 0.15s linear 1.4s 1 normal;
}
.show17.toCenter .showPrecent div:nth-child(16) {
animation: fadeInOut 0.15s linear 1.5s 1 normal;
}
.show17.toCenter .showPrecent div:nth-child(17) {
animation: fadeInOut 0.15s linear 1.6s 1 normal;
}
.show18.toCenter .showPrecent div:nth-child(1) {
animation: fadeInOut 0.15s linear 0s 1 normal;
}
.show18.toCenter .showPrecent div:nth-child(2) {
animation: fadeInOut 0.15s linear 0.1s 1 normal;
}
.show18.toCenter .showPrecent div:nth-child(3) {
animation: fadeInOut 0.15s linear 0.2s 1 normal;
}
.show18.toCenter .showPrecent div:nth-child(4) {
animation: fadeInOut 0.15s linear 0.3s 1 normal;
}
.show18.toCenter .showPrecent div:nth-child(5) {
animation: fadeInOut 0.15s linear 0.4s 1 normal;
}
.show18.toCenter .showPrecent div:nth-child(6) {
animation: fadeInOut 0.15s linear 0.5s 1 normal;
}
.show18.toCenter .showPrecent div:nth-child(7) {
animation: fadeInOut 0.15s linear 0.6s 1 normal;
}
.show18.toCenter .showPrecent div:nth-child(8) {
animation: fadeInOut 0.15s linear 0.7s 1 normal;
}
.show18.toCenter .showPrecent div:nth-child(9) {
animation: fadeInOut 0.15s linear 0.8s 1 normal;
}
.show18.toCenter .showPrecent div:nth-child(10) {
animation: fadeInOut 0.15s linear 0.9s 1 normal;
}
.show18.toCenter .showPrecent div:nth-child(11) {
animation: fadeInOut 0.15s linear 1s 1 normal;
}
.show18.toCenter .showPrecent div:nth-child(12) {
animation: fadeInOut 0.15s linear 1.1s 1 normal;
}
.show18.toCenter .showPrecent div:nth-child(13) {
animation: fadeInOut 0.15s linear 1.2s 1 normal;
}
.show18.toCenter .showPrecent div:nth-child(14) {
animation: fadeInOut 0.15s linear 1.3s 1 normal;
}
.show18.toCenter .showPrecent div:nth-child(15) {
animation: fadeInOut 0.15s linear 1.4s 1 normal;
}
.show18.toCenter .showPrecent div:nth-child(16) {
animation: fadeInOut 0.15s linear 1.5s 1 normal;
}
.show18.toCenter .showPrecent div:nth-child(17) {
animation: fadeInOut 0.15s linear 1.6s 1 normal;
}
.show18.toCenter .showPrecent div:nth-child(18) {
animation: fadeInOut 0.15s linear 1.7s 1 normal;
}
.show19.toCenter .showPrecent div:nth-child(1) {
animation: fadeInOut 0.15s linear 0s 1 normal;
}
.show19.toCenter .showPrecent div:nth-child(2) {
animation: fadeInOut 0.15s linear 0.1s 1 normal;
}
.show19.toCenter .showPrecent div:nth-child(3) {
animation: fadeInOut 0.15s linear 0.2s 1 normal;
}
.show19.toCenter .showPrecent div:nth-child(4) {
animation: fadeInOut 0.15s linear 0.3s 1 normal;
}
.show19.toCenter .showPrecent div:nth-child(5) {
animation: fadeInOut 0.15s linear 0.4s 1 normal;
}
.show19.toCenter .showPrecent div:nth-child(6) {
animation: fadeInOut 0.15s linear 0.5s 1 normal;
}
.show19.toCenter .showPrecent div:nth-child(7) {
animation: fadeInOut 0.15s linear 0.6s 1 normal;
}
.show19.toCenter .showPrecent div:nth-child(8) {
animation: fadeInOut 0.15s linear 0.7s 1 normal;
}
.show19.toCenter .showPrecent div:nth-child(9) {
animation: fadeInOut 0.15s linear 0.8s 1 normal;
}
.show19.toCenter .showPrecent div:nth-child(10) {
animation: fadeInOut 0.15s linear 0.9s 1 normal;
}
.show19.toCenter .showPrecent div:nth-child(11) {
animation: fadeInOut 0.15s linear 1s 1 normal;
}
.show19.toCenter .showPrecent div:nth-child(12) {
animation: fadeInOut 0.15s linear 1.1s 1 normal;
}
.show19.toCenter .showPrecent div:nth-child(13) {
animation: fadeInOut 0.15s linear 1.2s 1 normal;
}
.show19.toCenter .showPrecent div:nth-child(14) {
animation: fadeInOut 0.15s linear 1.3s 1 normal;
}
.show19.toCenter .showPrecent div:nth-child(15) {
animation: fadeInOut 0.15s linear 1.4s 1 normal;
}
.show19.toCenter .showPrecent div:nth-child(16) {
animation: fadeInOut 0.15s linear 1.5s 1 normal;
}
.show19.toCenter .showPrecent div:nth-child(17) {
animation: fadeInOut 0.15s linear 1.6s 1 normal;
}
.show19.toCenter .showPrecent div:nth-child(18) {
animation: fadeInOut 0.15s linear 1.7s 1 normal;
}
.show19.toCenter .showPrecent div:nth-child(19) {
animation: fadeInOut 0.15s linear 1.8s 1 normal;
}
.show20.toCenter .showPrecent div:nth-child(1) {
animation: fadeInOut 0.15s linear 0s 1 normal;
}
.show20.toCenter .showPrecent div:nth-child(2) {
animation: fadeInOut 0.15s linear 0.1s 1 normal;
}
.show20.toCenter .showPrecent div:nth-child(3) {
animation: fadeInOut 0.15s linear 0.2s 1 normal;
}
.show20.toCenter .showPrecent div:nth-child(4) {
animation: fadeInOut 0.15s linear 0.3s 1 normal;
}
.show20.toCenter .showPrecent div:nth-child(5) {
animation: fadeInOut 0.15s linear 0.4s 1 normal;
}
.show20.toCenter .showPrecent div:nth-child(6) {
animation: fadeInOut 0.15s linear 0.5s 1 normal;
}
.show20.toCenter .showPrecent div:nth-child(7) {
animation: fadeInOut 0.15s linear 0.6s 1 normal;
}
.show20.toCenter .showPrecent div:nth-child(8) {
animation: fadeInOut 0.15s linear 0.7s 1 normal;
}
.show20.toCenter .showPrecent div:nth-child(9) {
animation: fadeInOut 0.15s linear 0.8s 1 normal;
}
.show20.toCenter .showPrecent div:nth-child(10) {
animation: fadeInOut 0.15s linear 0.9s 1 normal;
}
.show20.toCenter .showPrecent div:nth-child(11) {
animation: fadeInOut 0.15s linear 1s 1 normal;
}
.show20.toCenter .showPrecent div:nth-child(12) {
animation: fadeInOut 0.15s linear 1.1s 1 normal;
}
.show20.toCenter .showPrecent div:nth-child(13) {
animation: fadeInOut 0.15s linear 1.2s 1 normal;
}
.show20.toCenter .showPrecent div:nth-child(14) {
animation: fadeInOut 0.15s linear 1.3s 1 normal;
}
.show20.toCenter .showPrecent div:nth-child(15) {
animation: fadeInOut 0.15s linear 1.4s 1 normal;
}
.show20.toCenter .showPrecent div:nth-child(16) {
animation: fadeInOut 0.15s linear 1.5s 1 normal;
}
.show20.toCenter .showPrecent div:nth-child(17) {
animation: fadeInOut 0.15s linear 1.6s 1 normal;
}
.show20.toCenter .showPrecent div:nth-child(18) {
animation: fadeInOut 0.15s linear 1.7s 1 normal;
}
.show20.toCenter .showPrecent div:nth-child(19) {
animation: fadeInOut 0.15s linear 1.8s 1 normal;
}
.show20.toCenter .showPrecent div:nth-child(20) {
animation: fadeInOut 0.15s linear 1.9s 1 normal;
}
.show21.toCenter .showPrecent div:nth-child(1) {
animation: fadeInOut 0.15s linear 0s 1 normal;
}
.show21.toCenter .showPrecent div:nth-child(2) {
animation: fadeInOut 0.15s linear 0.1s 1 normal;
}
.show21.toCenter .showPrecent div:nth-child(3) {
animation: fadeInOut 0.15s linear 0.2s 1 normal;
}
.show21.toCenter .showPrecent div:nth-child(4) {
animation: fadeInOut 0.15s linear 0.3s 1 normal;
}
.show21.toCenter .showPrecent div:nth-child(5) {
animation: fadeInOut 0.15s linear 0.4s 1 normal;
}
.show21.toCenter .showPrecent div:nth-child(6) {
animation: fadeInOut 0.15s linear 0.5s 1 normal;
}
.show21.toCenter .showPrecent div:nth-child(7) {
animation: fadeInOut 0.15s linear 0.6s 1 normal;
}
.show21.toCenter .showPrecent div:nth-child(8) {
animation: fadeInOut 0.15s linear 0.7s 1 normal;
}
.show21.toCenter .showPrecent div:nth-child(9) {
animation: fadeInOut 0.15s linear 0.8s 1 normal;
}
.show21.toCenter .showPrecent div:nth-child(10) {
animation: fadeInOut 0.15s linear 0.9s 1 normal;
}
.show21.toCenter .showPrecent div:nth-child(11) {
animation: fadeInOut 0.15s linear 1s 1 normal;
}
.show21.toCenter .showPrecent div:nth-child(12) {
animation: fadeInOut 0.15s linear 1.1s 1 normal;
}
.show21.toCenter .showPrecent div:nth-child(13) {
animation: fadeInOut 0.15s linear 1.2s 1 normal;
}
.show21.toCenter .showPrecent div:nth-child(14) {
animation: fadeInOut 0.15s linear 1.3s 1 normal;
}
.show21.toCenter .showPrecent div:nth-child(15) {
animation: fadeInOut 0.15s linear 1.4s 1 normal;
}
.show21.toCenter .showPrecent div:nth-child(16) {
animation: fadeInOut 0.15s linear 1.5s 1 normal;
}
.show21.toCenter .showPrecent div:nth-child(17) {
animation: fadeInOut 0.15s linear 1.6s 1 normal;
}
.show21.toCenter .showPrecent div:nth-child(18) {
animation: fadeInOut 0.15s linear 1.7s 1 normal;
}
.show21.toCenter .showPrecent div:nth-child(19) {
animation: fadeInOut 0.15s linear 1.8s 1 normal;
}
.show21.toCenter .showPrecent div:nth-child(20) {
animation: fadeInOut 0.15s linear 1.9s 1 normal;
}
.show21.toCenter .showPrecent div:nth-child(21) {
animation: fadeInOut 0.15s linear 2s 1 normal;
}
.show22.toCenter .showPrecent div:nth-child(1) {
animation: fadeInOut 0.15s linear 0s 1 normal;
}
.show22.toCenter .showPrecent div:nth-child(2) {
animation: fadeInOut 0.15s linear 0.1s 1 normal;
}
.show22.toCenter .showPrecent div:nth-child(3) {
animation: fadeInOut 0.15s linear 0.2s 1 normal;
}
.show22.toCenter .showPrecent div:nth-child(4) {
animation: fadeInOut 0.15s linear 0.3s 1 normal;
}
.show22.toCenter .showPrecent div:nth-child(5) {
animation: fadeInOut 0.15s linear 0.4s 1 normal;
}
.show22.toCenter .showPrecent div:nth-child(6) {
animation: fadeInOut 0.15s linear 0.5s 1 normal;
}
.show22.toCenter .showPrecent div:nth-child(7) {
animation: fadeInOut 0.15s linear 0.6s 1 normal;
}
.show22.toCenter .showPrecent div:nth-child(8) {
animation: fadeInOut 0.15s linear 0.7s 1 normal;
}
.show22.toCenter .showPrecent div:nth-child(9) {
animation: fadeInOut 0.15s linear 0.8s 1 normal;
}
.show22.toCenter .showPrecent div:nth-child(10) {
animation: fadeInOut 0.15s linear 0.9s 1 normal;
}
.show22.toCenter .showPrecent div:nth-child(11) {
animation: fadeInOut 0.15s linear 1s 1 normal;
}
.show22.toCenter .showPrecent div:nth-child(12) {
animation: fadeInOut 0.15s linear 1.1s 1 normal;
}
.show22.toCenter .showPrecent div:nth-child(13) {
animation: fadeInOut 0.15s linear 1.2s 1 normal;
}
.show22.toCenter .showPrecent div:nth-child(14) {
animation: fadeInOut 0.15s linear 1.3s 1 normal;
}
.show22.toCenter .showPrecent div:nth-child(15) {
animation: fadeInOut 0.15s linear 1.4s 1 normal;
}
.show22.toCenter .showPrecent div:nth-child(16) {
animation: fadeInOut 0.15s linear 1.5s 1 normal;
}
.show22.toCenter .showPrecent div:nth-child(17) {
animation: fadeInOut 0.15s linear 1.6s 1 normal;
}
.show22.toCenter .showPrecent div:nth-child(18) {
animation: fadeInOut 0.15s linear 1.7s 1 normal;
}
.show22.toCenter .showPrecent div:nth-child(19) {
animation: fadeInOut 0.15s linear 1.8s 1 normal;
}
.show22.toCenter .showPrecent div:nth-child(20) {
animation: fadeInOut 0.15s linear 1.9s 1 normal;
}
.show22.toCenter .showPrecent div:nth-child(21) {
animation: fadeInOut 0.15s linear 2s 1 normal;
}
.show22.toCenter .showPrecent div:nth-child(22) {
animation: fadeInOut 0.15s linear 2.1s 1 normal;
}
.show23.toCenter .showPrecent div:nth-child(1) {
animation: fadeInOut 0.15s linear 0s 1 normal;
}
.show23.toCenter .showPrecent div:nth-child(2) {
animation: fadeInOut 0.15s linear 0.1s 1 normal;
}
.show23.toCenter .showPrecent div:nth-child(3) {
animation: fadeInOut 0.15s linear 0.2s 1 normal;
}
.show23.toCenter .showPrecent div:nth-child(4) {
animation: fadeInOut 0.15s linear 0.3s 1 normal;
}
.show23.toCenter .showPrecent div:nth-child(5) {
animation: fadeInOut 0.15s linear 0.4s 1 normal;
}
.show23.toCenter .showPrecent div:nth-child(6) {
animation: fadeInOut 0.15s linear 0.5s 1 normal;
}
.show23.toCenter .showPrecent div:nth-child(7) {
animation: fadeInOut 0.15s linear 0.6s 1 normal;
}
.show23.toCenter .showPrecent div:nth-child(8) {
animation: fadeInOut 0.15s linear 0.7s 1 normal;
}
.show23.toCenter .showPrecent div:nth-child(9) {
animation: fadeInOut 0.15s linear 0.8s 1 normal;
}
.show23.toCenter .showPrecent div:nth-child(10) {
animation: fadeInOut 0.15s linear 0.9s 1 normal;
}
.show23.toCenter .showPrecent div:nth-child(11) {
animation: fadeInOut 0.15s linear 1s 1 normal;
}
.show23.toCenter .showPrecent div:nth-child(12) {
animation: fadeInOut 0.15s linear 1.1s 1 normal;
}
.show23.toCenter .showPrecent div:nth-child(13) {
animation: fadeInOut 0.15s linear 1.2s 1 normal;
}
.show23.toCenter .showPrecent div:nth-child(14) {
animation: fadeInOut 0.15s linear 1.3s 1 normal;
}
.show23.toCenter .showPrecent div:nth-child(15) {
animation: fadeInOut 0.15s linear 1.4s 1 normal;
}
.show23.toCenter .showPrecent div:nth-child(16) {
animation: fadeInOut 0.15s linear 1.5s 1 normal;
}
.show23.toCenter .showPrecent div:nth-child(17) {
animation: fadeInOut 0.15s linear 1.6s 1 normal;
}
.show23.toCenter .showPrecent div:nth-child(18) {
animation: fadeInOut 0.15s linear 1.7s 1 normal;
}
.show23.toCenter .showPrecent div:nth-child(19) {
animation: fadeInOut 0.15s linear 1.8s 1 normal;
}
.show23.toCenter .showPrecent div:nth-child(20) {
animation: fadeInOut 0.15s linear 1.9s 1 normal;
}
.show23.toCenter .showPrecent div:nth-child(21) {
animation: fadeInOut 0.15s linear 2s 1 normal;
}
.show23.toCenter .showPrecent div:nth-child(22) {
animation: fadeInOut 0.15s linear 2.1s 1 normal;
}
.show23.toCenter .showPrecent div:nth-child(23) {
animation: fadeInOut 0.15s linear 2.2s 1 normal;
}
.show24.toCenter .showPrecent div:nth-child(1) {
animation: fadeInOut 0.15s linear 0s 1 normal;
}
.show24.toCenter .showPrecent div:nth-child(2) {
animation: fadeInOut 0.15s linear 0.1s 1 normal;
}
.show24.toCenter .showPrecent div:nth-child(3) {
animation: fadeInOut 0.15s linear 0.2s 1 normal;
}
.show24.toCenter .showPrecent div:nth-child(4) {
animation: fadeInOut 0.15s linear 0.3s 1 normal;
}
.show24.toCenter .showPrecent div:nth-child(5) {
animation: fadeInOut 0.15s linear 0.4s 1 normal;
}
.show24.toCenter .showPrecent div:nth-child(6) {
animation: fadeInOut 0.15s linear 0.5s 1 normal;
}
.show24.toCenter .showPrecent div:nth-child(7) {
animation: fadeInOut 0.15s linear 0.6s 1 normal;
}
.show24.toCenter .showPrecent div:nth-child(8) {
animation: fadeInOut 0.15s linear 0.7s 1 normal;
}
.show24.toCenter .showPrecent div:nth-child(9) {
animation: fadeInOut 0.15s linear 0.8s 1 normal;
}
.show24.toCenter .showPrecent div:nth-child(10) {
animation: fadeInOut 0.15s linear 0.9s 1 normal;
}
.show24.toCenter .showPrecent div:nth-child(11) {
animation: fadeInOut 0.15s linear 1s 1 normal;
}
.show24.toCenter .showPrecent div:nth-child(12) {
animation: fadeInOut 0.15s linear 1.1s 1 normal;
}
.show24.toCenter .showPrecent div:nth-child(13) {
animation: fadeInOut 0.15s linear 1.2s 1 normal;
}
.show24.toCenter .showPrecent div:nth-child(14) {
animation: fadeInOut 0.15s linear 1.3s 1 normal;
}
.show24.toCenter .showPrecent div:nth-child(15) {
animation: fadeInOut 0.15s linear 1.4s 1 normal;
}
.show24.toCenter .showPrecent div:nth-child(16) {
animation: fadeInOut 0.15s linear 1.5s 1 normal;
}
.show24.toCenter .showPrecent div:nth-child(17) {
animation: fadeInOut 0.15s linear 1.6s 1 normal;
}
.show24.toCenter .showPrecent div:nth-child(18) {
animation: fadeInOut 0.15s linear 1.7s 1 normal;
}
.show24.toCenter .showPrecent div:nth-child(19) {
animation: fadeInOut 0.15s linear 1.8s 1 normal;
}
.show24.toCenter .showPrecent div:nth-child(20) {
animation: fadeInOut 0.15s linear 1.9s 1 normal;
}
.show24.toCenter .showPrecent div:nth-child(21) {
animation: fadeInOut 0.15s linear 2s 1 normal;
}
.show24.toCenter .showPrecent div:nth-child(22) {
animation: fadeInOut 0.15s linear 2.1s 1 normal;
}
.show24.toCenter .showPrecent div:nth-child(23) {
animation: fadeInOut 0.15s linear 2.2s 1 normal;
}
.show24.toCenter .showPrecent div:nth-child(24) {
animation: fadeInOut 0.15s linear 2.3s 1 normal;
}
.show25.toCenter .showPrecent div:nth-child(1) {
animation: fadeInOut 0.15s linear 0s 1 normal;
}
.show25.toCenter .showPrecent div:nth-child(2) {
animation: fadeInOut 0.15s linear 0.1s 1 normal;
}
.show25.toCenter .showPrecent div:nth-child(3) {
animation: fadeInOut 0.15s linear 0.2s 1 normal;
}
.show25.toCenter .showPrecent div:nth-child(4) {
animation: fadeInOut 0.15s linear 0.3s 1 normal;
}
.show25.toCenter .showPrecent div:nth-child(5) {
animation: fadeInOut 0.15s linear 0.4s 1 normal;
}
.show25.toCenter .showPrecent div:nth-child(6) {
animation: fadeInOut 0.15s linear 0.5s 1 normal;
}
.show25.toCenter .showPrecent div:nth-child(7) {
animation: fadeInOut 0.15s linear 0.6s 1 normal;
}
.show25.toCenter .showPrecent div:nth-child(8) {
animation: fadeInOut 0.15s linear 0.7s 1 normal;
}
.show25.toCenter .showPrecent div:nth-child(9) {
animation: fadeInOut 0.15s linear 0.8s 1 normal;
}
.show25.toCenter .showPrecent div:nth-child(10) {
animation: fadeInOut 0.15s linear 0.9s 1 normal;
}
.show25.toCenter .showPrecent div:nth-child(11) {
animation: fadeInOut 0.15s linear 1s 1 normal;
}
.show25.toCenter .showPrecent div:nth-child(12) {
animation: fadeInOut 0.15s linear 1.1s 1 normal;
}
.show25.toCenter .showPrecent div:nth-child(13) {
animation: fadeInOut 0.15s linear 1.2s 1 normal;
}
.show25.toCenter .showPrecent div:nth-child(14) {
animation: fadeInOut 0.15s linear 1.3s 1 normal;
}
.show25.toCenter .showPrecent div:nth-child(15) {
animation: fadeInOut 0.15s linear 1.4s 1 normal;
}
.show25.toCenter .showPrecent div:nth-child(16) {
animation: fadeInOut 0.15s linear 1.5s 1 normal;
}
.show25.toCenter .showPrecent div:nth-child(17) {
animation: fadeInOut 0.15s linear 1.6s 1 normal;
}
.show25.toCenter .showPrecent div:nth-child(18) {
animation: fadeInOut 0.15s linear 1.7s 1 normal;
}
.show25.toCenter .showPrecent div:nth-child(19) {
animation: fadeInOut 0.15s linear 1.8s 1 normal;
}
.show25.toCenter .showPrecent div:nth-child(20) {
animation: fadeInOut 0.15s linear 1.9s 1 normal;
}
.show25.toCenter .showPrecent div:nth-child(21) {
animation: fadeInOut 0.15s linear 2s 1 normal;
}
.show25.toCenter .showPrecent div:nth-child(22) {
animation: fadeInOut 0.15s linear 2.1s 1 normal;
}
.show25.toCenter .showPrecent div:nth-child(23) {
animation: fadeInOut 0.15s linear 2.2s 1 normal;
}
.show25.toCenter .showPrecent div:nth-child(24) {
animation: fadeInOut 0.15s linear 2.3s 1 normal;
}
.show25.toCenter .showPrecent div:nth-child(25) {
animation: fadeInOut 0.15s linear 2.4s 1 normal;
}
.toCenter {
width: 180px;
height: 100px;
overflow: hidden;
background: url(./images/demo1.png) no-repeat;
position: relative;
text-align: center;
}
.toCenter h2 {
font-size: 40px;
line-height: 10px;
font-weight: bolder;
position: relative;
z-index: 3;
text-shadow: 0px 0px 6px #00f, 0px 0px 10px #00f;
}
.toCenter h2 span {
font-size: 12px;
font-weight: normal;
}
/* .toCenter p {
position: relative;
z-index: 3;
} */
.toCenter .light {
width: 99px;
height: 41px;
overflow: hidden;
background: url(./images/demo1.png) no-repeat -29px -188px;
position: absolute;
top: 32px;
left: 40px;
}
.toCenter .showPrecent {
width: 100%;
height: 100px;
overflow: hidden;
position: absolute;
top: 0;
left: 0;
}
.toCenter .showPrecent div {
width: 29px;
height: 22px;
overflow: hidden;
position: absolute;
background: url(./images/demo1.png) no-repeat 0px -100px;
opacity: 0;
}
.toCenter .showPrecent div:nth-child(1) {
top: 32px;
left: 0px;
}
.toCenter .showPrecent div:nth-child(2) {
background-position: 0px -122px;
top: 43px;
left: 1px;
}
.toCenter .showPrecent div:nth-child(3) {
background-position: 0px -144px;
top: 53px;
left: 5px;
}
.toCenter .showPrecent div:nth-child(4) {
background-position: 0px -166px;
top: 62px;
left: 15px;
}
.toCenter .showPrecent div:nth-child(5) {
background: url(./images/demo1.png) no-repeat -29px -100px;
top: 70px;
left: 30px;
}
.toCenter .showPrecent div:nth-child(6) {
background: url(./images/demo1.png) no-repeat -29px -122px;
top: 76px;
left: 51px;
}
.toCenter .showPrecent div:nth-child(7) {
background: url(./images/demo1.png) no-repeat -29px -144px;
top: 77px;
left: 75px;
}
.toCenter .showPrecent div:nth-child(8) {
background: url(./images/demo1.png) no-repeat -29px -166px;
top: 76px;
left: 99px;
}
.toCenter .showPrecent div:nth-child(9) {
background: url(./images/demo1.png) no-repeat -58px -100px;
top: 70px;
left: 120px;
}
.toCenter .showPrecent div:nth-child(10) {
background: url(./images/demo1.png) no-repeat -58px -122px;
top: 62px;
left: 136px;
}
.toCenter .showPrecent div:nth-child(11) {
background: url(./images/demo1.png) no-repeat -58px -144px;
top: 53px;
left: 146px;
}
.toCenter .showPrecent div:nth-child(12) {
background: url(./images/demo1.png) no-repeat -58px -166px;
top: 43px;
left: 150px;
}
.toCenter .showPrecent div:nth-child(13) {
background: url(./images/demo1.png) no-repeat -87px -100px;
top: 33px;
left: 149px;
}
.toCenter .showPrecent div:nth-child(14) {
background: url(./images/demo1.png) no-repeat -87px -122px;
top: 21px;
left: 146px;
}
.toCenter .showPrecent div:nth-child(15) {
background: url(./images/demo1.png) no-repeat -87px -144px;
top: 13px;
left: 138px;
}
.toCenter .showPrecent div:nth-child(16) {
background: url(./images/demo1.png) no-repeat -87px -166px;
top: 6px;
left: 127px;
}
.toCenter .showPrecent div:nth-child(17) {
background: url(./images/demo1.png) no-repeat -116px -100px;
top: 1px;
left: 114px;
}
.toCenter .showPrecent div:nth-child(18) {
background: url(./images/demo1.png) no-repeat -116px -122px;
top: -3px;
left: 99px;
}
.toCenter .showPrecent div:nth-child(19) {
background: url(./images/demo1.png) no-repeat -116px -144px;
top: -4px;
left: 85px;
}
.toCenter .showPrecent div:nth-child(20) {
background: url(./images/demo1.png) no-repeat -116px -166px;
top: -4px;
left: 68px;
}
.toCenter .showPrecent div:nth-child(21) {
background: url(./images/demo1.png) no-repeat -145px -100px;
top: -3px;
left: 54px;
}
.toCenter .showPrecent div:nth-child(22) {
background: url(./images/demo1.png) no-repeat -145px -122px;
top: 1px;
left: 39px;
}
.toCenter .showPrecent div:nth-child(23) {
background: url(./images/demo1.png) no-repeat -145px -144px;
top: 6px;
left: 25px;
}
.toCenter .showPrecent div:nth-child(24) {
background: url(./images/demo1.png) no-repeat -145px -166px;
top: 13px;
left: 13px;
}
.toCenter .showPrecent div:nth-child(25) {
background: url(./images/demo1.png) no-repeat 0px -188px;
top: 21px;
left: 4px;
}
html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./index.css">
<title>Document</title>
</head>
<body>
<div id="pie" class="toCenter">
<h2 id="percentage">0<span>%</span></h2>
<div class="light"></div>
<div class="showPrecent">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</div>
<script>
var currentNum = 0; // 当前
var totalNum = 100; // 总数
update();
// 刷新
function update() {
currentNum = Math.round(Math.random() * 100) // 0-100的随机数
var percent = Math.round(currentNum / totalNum * 100); // 计算百分比
console.log('percent: ', percent);
styleChange(percent)
document.querySelector('#percentage').innerHTML = `${percent}<span>%</span>`;
}
// 刷新进度样式
function styleChange(percent) {
var cssName = 'show' + Math.ceil(percent / 4);
console.log('cssName: ', cssName);
document.querySelector('#pie').setAttribute('class', 'toCenter ' + cssName); // 改变类
}
</script>
</body>
</html>
图片和效果