.wrap { background: none repeat scroll 0px 0px transparent; bottom: 0px; height: 100px; left: 0px; margin: auto; position: absolute; right: 0px; top: 0px; width: 100px; } body { height: 100%; width: 100%; } .outer-circle { border-radius: 50%; border: 2px solid #6f6f6f; height: 50px; left: 50%; position: absolute; top: 50%; transform: translate(-50%, -50%) rotate(0deg); -webkit-transform: translate(-50%, -50%) rotate(0deg); animation: out-cricle 5s ease infinite; -webkit-animation: out-cricle 5s ease infinite; width: 50px; } .inner-circle { background: none repeat scroll 0px 0px #4e4e4e; border-radius: 50%; display: inline-block; height: 6px; left: 50%; margin: -3px 0px 0px -3px; position: absolute; top: 50%; width: 6px; } .cir1 { transform: translate(12px); -webkit-transform: translate(12px); animation: inner-circle1 5s ease infinite; -webkit-animation: inner-circle1 5s ease infinite; } .cir3 { transform: translate(-12px); -webkit-transform: translate(-12px); animation: inner-circle3 5s ease infinite; -webkit-animation: inner-circle3 5s ease infinite; } @keyframes out-cricle { 0% { width: 50px; height: 50px; } 10% { width: 60px; height: 60px; } 20% { width: 0px; height: 0px; transform: translate(-50%, -50%) rotate(0deg); } 90% { width: 0px; height: 0px; transform: translate(-50%, -50%) rotate(1080deg); } 100% { width: 50px; height: 50px; transform: translate(-50%, -50%) rotate(1080deg); } } @-webkit-keyframes out-cricle { 0% { width: 50px; height: 50px; } 10% { width: 60px; height: 60px; } 20% { width: 0px; height: 0px; transform: translate(-50%, -50%) rotate(0deg); } 90% { width: 0px; height: 0px; transform: translate(-50%, -50%) rotate(1080deg); } 100% { width: 50px; height: 50px; transform: translate(-50%, -50%) rotate(1080deg); } } @keyframes inner-circle1 { 0% { transform: translate(12px); } 20% { transform: translate(12px); } 30% { transform: translate(24px); } 90% { transform: translate(24px); } 100% { transform: translate(12px); } } @-webkit-keyframes inner-circle1 { 0% { -webkit-transform: translate(12px); } 20% { -webkit-transform: translate(12px); } 30% { -webkit-transform: translate(24px); } 90% { -webkit-transform: translate(24px); } 100% { -webkit-transform: translate(12px); } } @keyframes inner-circle3 { 0% { transform: translate(-12px); } 20% { transform: translate(-12px); } 30% { transform: translate(-24px); } 90% { transform: translate(-24px); } 100% { transform: translate(-12px); } } @-webkit-keyframes inner-circle3 { 0% { -webkit-transform: translate(-12px); } 20% { -webkit-transform: translate(-12px); } 30% { -webkit-transform: translate(-24px); } 90% { -webkit-transform: translate(-24px); } 100% { -webkit-transform: translate(-12px); } }