首页 > Web开发 > 详细

css旋转动画

时间:2021-05-30 10:50:26      阅读:9      评论:0      收藏:0      [点我收藏+]

<!DOCTYPE html>
<html>
<head>
   <meta charset="UTF-8">
   <title>动画</title>
   <style>
      body>div{
          width:100px;
          height:100px;
          margin: 20px auto 0;
          color:orange;
          font-size:100px;
          line-height:1;
          animation: circle 5s linear 0s infinite;
          transform-origin: 0% 300%;
      }
      div>div{
          animation: inner-circle 5s linear 0s infinite;
      }
      @keyframes circle {
          from { transform:rotate(0deg); }
          to { transform:rotate(360deg); }
      }
      @keyframes inner-circle{
           from{
               transform: rotate(360deg);
           }
       }
   </style>
</head>
<body>
  <div>
      <div>?</div>
  </div>
</body>
</html>

css旋转动画

原文:https://www.cnblogs.com/wjm12332145/p/14827080.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!