#loading { width: 100%; height: 100%; background-color: black; position: fixed; z-index: -1; opacity: 0; transition: all 0.3s; } #loading * { text-align: center; } #loading .box{ /*border: 1px solid;*/ position: absolute; width:400px; height:200px; left:50%; top:50%; margin-left:-200px; margin-top:-200px; display: none; color: white; } #loading-powered-by{ width: 100%; font-size: 12px; color: grey; text-align: center; position: absolute; bottom: 1em; } #loading .title { font-size: 30px; } #on-load-file-name{ font-size: 16px; color: grey; line-height: 35px; } #text-percent{ font-size: 30px; top: 83px; position: absolute; width: 100%; } .circle-box{ margin: 30px auto; width: 200px; height: 200px; position: relative } .mask{ overflow: hidden; width: 50%; height: 100%; top: 0; position: absolute; } .mask.right{ right: 0; } .mask.left{ left: 0; } .circle { width: 200px; height: 200px; border-radius: 50%; border: 1.5px solid #4e4e4e; background-color: transparent; overflow: hidden; position: absolute; box-sizing: border-box; top: 0; left: 0; transition: all 0.5s ; } .circle.right{ clip:rect(0,auto,auto,100px); border: 2px solid white; transform: rotate(-180deg); left: -100px; } .circle.left{ clip:rect(0,100px,auto,auto); border: 2px solid white; transform: rotate(-180deg); } /*https://www.html5tricks.com/demo/css3-loading-cool-styles/index.html*/ .load-3 { text-align: center; position: absolute; bottom: 32%; width: 100%; } .load-3 .k-line2 { display: inline-block; height: 10px; width: 10px; opacity: 0; border-radius: 50%; transform: translateX(-100px); background-color: #ffffff; animation: k-loadingS 4s infinite; animation-delay: .8s; } @keyframes k-loadingS { 40% { transform:translateX(0); opacity:.8 } 100% { transform: translateX(100px); opacity:0; } }