#gameBg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: url('./loadingImg/bg.jpg'); background-size: 100% 100%; background-repeat: no-repeat; } .rotatePoint { position: absolute; margin: auto; top: 0; bottom: 0; left: 0; right: 0; display: inline-block; width: 40px; height: 40px; background-image: url('./loadingImg/rotate.png'); background-size: 100%; animation: rotateAnim 1.2s linear infinite; } @keyframes rotateAnim { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }