css旋转效果

<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>Document</title>
  <style>
  .box {
    width: 100px;
    height: 100px;
    background: green;
    animation: rotate 4s linear infinite;
  }

  @keyframes rotate {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
  </style>
</head>

<body>
  <div class="box"></div>
</body>

</html>
posted @ 2018-02-07 10:49  wmui  阅读(153)  评论(0)    收藏  举报