.center-body { z-index: 99999; opacity: 0.6; background-image: url('http://10.96.46.192/image/f5baef4b6b6677020ab8d091ef78a3bc.gif'); background-position: center center; background-repeat:no-repeat; background-size:400px 300px; display: flex; justify-content: center; align-items: center; width: 100%; height: 100vh; /****** center box width: 300px; height: 300px; border: solid 1px #aaa; */ } body { background: #202628; } .loader-circle-9 { width: 70px; height: 70px; border-right: 4px solid #3498db; border-radius: 100%; animation: anmR-loader-circle-18 800ms linear infinite; display: inline-block; position: relative; } .loader-circle-9:before, .loader-circle-9:after { content: ""; width: 40px; height: 40px; display: block; position: absolute; top: calc(50% - 20px); left: calc(50% - 20px); border-left: 3px solid #d35400; border-radius: 100%; animation: anmL-loader-circle-18 800ms linear infinite; } .loader-circle-9:after { width: 30px; height: 30px; top: calc(50% - 15px); left: calc(50% - 20px); border: 0; border-right: 2px solid #2ecc71; animation: none; } @keyframes anmL-loader-circle-18 { from { transform: rotate(0deg); } to { transform: rotate(720deg); } } @keyframes anmR-loader-circle-18 { from { transform: rotate(360deg); } to { transform: rotate(0deg); } } .loadtext:before{ font-size: 20px; top:50%; color: #000; font-weight: bolder; animation: textname 2.5s linear infinite; transition: 0.2s; content: '載入中'; } @keyframes textname { 0%{ content: '載入中'; } 25%{ content: '載入中.'; } 50%{ content: '載入中..'; } 75%{ content: '載入中...'; } 100%{ content: '載入中....'; } }