01.gif

    1. <!DOCTYPE html>
    2. <html lang="en">
    3. <head>
    4. <meta charset="UTF-8">
    5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
    6. <title>Document</title>
    7. <style>
    8. *{margin:0;padding:0}
    9. .wrap {
    10. font-size: 0;
    11. position: relative;
    12. width: 300px;
    13. height: 300px;
    14. margin: 200px auto;
    15. }
    16. .position-center {
    17. position: absolute;
    18. top: 50%;
    19. left: 50%;
    20. transform: translate(-50%, -50%);
    21. }
    22. img {
    23. width: 302px;
    24. height:302px;
    25. border-radius: 50%;
    26. }
    27. .more{
    28. width:300px;
    29. height: 300px;
    30. border:2px solid #333;
    31. border-radius: 50%;
    32. //key code
    33. position: absolute;
    34. opacity: 1;
    35. left: 0;
    36. right: 0;
    37. top: 0;
    38. bottom: 0;
    39. margin: auto;
    40. animation: line-rotate 3s linear infinite;
    41. }
    42. @keyframes line-rotate{
    43. 0%{
    44. transform: rotate(0deg) scale(1) ;
    45. opacity: 1;
    46. }
    47. 25%{
    48. transform: rotate(90deg) scale(1.25);
    49. opacity: 0.25;
    50. }
    51. 50%{
    52. transform: rotate(180deg) scale(1.5);
    53. opacity: 0.5;
    54. }
    55. 75%{
    56. transform: rotate(270deg) scale(1.75);
    57. opacity: 0.75;
    58. }
    59. 100%{
    60. transform: rotate(360deg) scale(2);
    61. opacity: 0;
    62. }
    63. }
    64. .wrap .more:nth-child(2){
    65. animation-delay: 1s;
    66. }
    67. .wrap .more:nth-child(3){
    68. animation-delay: 2s;
    69. }
    70. .wrap .more:nth-child(4){
    71. animation-delay: 3s;
    72. }
    73. </style>
    74. </head>
    75. <body>
    76. <div class="wrap">
    77. <div class="more"></div>
    78. <div class="more"></div>
    79. <div class="more"></div>
    80. <div class="more"></div>
    81. <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="">
    82. </div>
    83. </body>
    84. </html>