其他分享
首页 > 其他分享> > 立体旋转圆环

立体旋转圆环

作者:互联网

<!DOCTYPE html> <html>  <head>   <meta charset="utf-8" />   <title></title>  </head>  <style>   @keyframes myfirst {    0% {     transform: rotateY(0deg)    }      100% {     transform: rotateY(360deg)    }   }     .round_warp {    position: relative;    width: 200px;    height: 200px;    transform-style: preserve-3d;    animation: myfirst 5s linear infinite;    transform-origin: center;   }     .round {    width: 100%;    height: 100%;    border: 10px solid #ccc;      box-sizing: border-box;    border-radius: 50%;    position: absolute;    left: 0;    top: 0;   }     .one {    transform: rotateX(60deg);   }     .two {    transform: rotateX(100deg);   }  </style>  <body class="ant-row">   <div class="round_warp">    <div class="round one">1</div>    <div class="round two">2</div>   </div>  </body> </html> <!DOCTYPE html><html> <head>  <meta charset="utf-8" />  <title></title> </head> <style>  @keyframes myfirst {   0% {    transform: rotateY(0deg)   }
   100% {    transform: rotateY(360deg)   }  }
  .round_warp {   position: relative;   width: 200px;   height: 200px;   transform-style: preserve-3d;   animation: myfirst 5s linear infinite;   transform-origin: center;  }
  .round {   width: 100%;   height: 100%;   border: 10px solid #ccc;
   box-sizing: border-box;   border-radius: 50%;   position: absolute;   left: 0;   top: 0;  }
  .one {   transform: rotateX(60deg);  }
  .two {   transform: rotateX(100deg);  } </style> <body class="ant-row">  <div class="round_warp">   <div class="round one">1</div>   <div class="round two">2</div>  </div> </body></html>

标签:rotateX,100%,transform,旋转,立体,width,height,border,圆环
来源: https://www.cnblogs.com/angia/p/16427083.html