超厉害的旋转的太极源码

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了超厉害的旋转的太极源码相关的知识,希望对你有一定的参考价值。

<!DOCTYPE html>

<html>

<head>

<meta charset="UTF-8">

<title></title>

<style type="text/css">

#box{

width: 420px;

height: 420px;

/*background-color: gray;*/

margin: 0 auto;

position: relative;

}

#small{

/*width: 30px;

height: 30px;*/

/*border: 1px solid #000;*/

/*width: 200px;*/

box-shadow: 10px 10px 20px #222;

height: 0;

border-top-width: 210px;

border-top-color: black;

border-bottom-width: 210px;

border-bottom-color: white;

border-left-width: 0;

border-right-width: 0;

border-style: solid;

border-radius: 210px;

position: relative;

top: 40px;

}

#small:before{

content: "";

height: 70px;

width: 70px;

border: 70px solid black;

border-radius: 140px;

background-color: white;

 

border-style: solid;

position: absolute;

top: -100px;

}

#small:after{

content: "";

height: 70px;

width: 70px;

border: 70px solid white;

border-radius: 140px;

background-color: black;

border-style: solid;

position: absolute;

top: -100px;

right: 0px;

}

#small{

animation: quanquan 15s linear infinite;

}

@keyframes quanquan{

        0%{

        transform: rotate(0deg);

        }

        100%{

        transform: rotate(-360deg);

        }

        }

</style>

</head>

<body>

<div id="box">

<div id="small"  class="box">

</div>

</div>

</body>

</html>

手机QQ扫一扫加web前端学习部落22群,群文件分享,技术交流

海量前端学习资料库,请添加群120342833

 

 技术分享

以上是关于超厉害的旋转的太极源码的主要内容,如果未能解决你的问题,请参考以下文章

纯css3制作旋转太极图案

太极旋转-JS实现

css3制作旋转的太极图

CSS3制作3D旋转太极

使用CSS3生成一个会旋转的太极八卦图

web实现太极八卦图旋转动画定位角度坐标htmlcssJavaScriptanimation