
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <style> *{margin:0;padding:0} .wrap { font-size: 0; position: relative; width: 300px; height: 300px; margin: 200px auto; } .position-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } img { width: 302px; height:302px; border-radius: 50%; } .more{ width:300px; height: 300px; border:2px solid #333; border-radius: 50%; //key code position: absolute; opacity: 1; left: 0; right: 0; top: 0; bottom: 0; margin: auto; animation: line-rotate 3s linear infinite; } @keyframes line-rotate{ 0%{ transform: rotate(0deg) scale(1) ; opacity: 1; } 25%{ transform: rotate(90deg) scale(1.25); opacity: 0.25; } 50%{ transform: rotate(180deg) scale(1.5); opacity: 0.5; } 75%{ transform: rotate(270deg) scale(1.75); opacity: 0.75; } 100%{ transform: rotate(360deg) scale(2); opacity: 0; } } .wrap .more:nth-child(2){ animation-delay: 1s; } .wrap .more:nth-child(3){ animation-delay: 2s; } .wrap .more:nth-child(4){ animation-delay: 3s; } </style></head><body> <div class="wrap"> <div class="more"></div> <div class="more"></div> <div class="more"></div> <div class="more"></div> <img src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1596543709831&di=2dfe6e29b274c30351015abe38c371fe&imgtype=0&src=http%3A%2F%2Fimg02.tooopen.com%2Fimages%2F20131212%2Fsy_51552288528.jpg" alt=""> </div></body></html>