body{ } body,div{ margin: 0; } .loading5Wrap{ display: flex; justify-content: center; align-items: center; position: relative; width: 360px; height: 360px; margin: 48px auto; } .loading5_1{ position: relative; z-index: 1; width: 240px; height: 240px; background: #333; border-radius: 100%; animation: loading5_1 1s infinite cubic-bezier(0,0,0.5,1); } .loading5_2{ position: absolute; top: 0; left: 10px; z-index: -1; width: 340px; height: 340px; border: 1px solid transparent; border-radius: 100%; animation: loading5_2 1s infinite cubic-bezier(0,0,0.5,1); } @keyframes loading5_1 { 0% {transform:scale(0.5);} 10% {transform:scale(1);} 100% {transform:scale(0.5);} } @keyframes loading5_2 { 0% {border: 1px solid transparent;transform:scale(0.1);} 10% {border: 2px solid #333;transform:scale(0.75);} 100% {border: 1px solid transparent;transform:scale(1.5);} }