首页 > 其他 > 详细

旋转的太极

时间:2016-08-14 16:04:59      阅读:174      评论:0      收藏:0      [点我收藏+]
  <!DOCTYPE html>
  <html>
  <head lang="en">
  <meta charset="UTF-8">
  <title>css3八卦</title>
  <style>
  body{background-color: lightgray;}
  @-webkit-keyframes yidong{
  100%{transform: translate(200px) rotate(720deg)}
  }
  #bagua{
  width: 200px;
  height: 100px;
  background-color: #fff;
  border-bottom: 100px solid #000;
  border-radius: 50%;
  position: relative;
   
  -webkit-animation: yidong 10s ease 0.1s forwards;
  }
  #bagua:before{
  content: "";
  width: 36px;
  height: 36px;
  border: 32px solid #000;
  background-color: #fff;
  position: absolute;
  top: 50px;
  border-radius: 50%;
  }
  #bagua:after{
  content: "";
  width: 36px;
  height: 36px;
  border: 32px solid #fff;
  background-color: #000;
  position: absolute;
  top: 50px;
  left: 100px;
  border-radius: 50%;
  }
   
   
   
  </style>
  </head>
  <body>
  <div id="bagua"></div>
  </body>
  </html>

旋转的太极

原文:http://www.cnblogs.com/135wxp/p/5770189.html

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