看了博客园里用C3做的谷歌logo,因强迫症修改了下。

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>仿谷歌logo</title>
<style type="text/css">
*{
margin: 0;
padding: 0;
}
body{
background: lightskyblue;
}
.container{
width: 400px;
height: 400px;
border-radius: 50%;
background: yellow;
position: relative;
margin: 200px auto;
overflow: hidden;
border: 1px solid #999;
box-sizing: border-box;
transform: rotate(-85deg);
}
.container::before{
content: "";
position: absolute;
width: 100px;
height: 100px;
border-radius: 50%;
background: deepskyblue;
top: 150px;
left: 150px;
box-shadow: 0 0 0 10px whitesmoke;
z-index: 9;
}
.green{
background: green;
width: 300px;
height: 300px;
position: absolute;
top: -100px;
left: -12px;
transform: skew(-30deg);
}
.green::before{
content: "";
width: 300px;
height: 200px;
background: green;
position: absolute;
top: 133px;
left: 30px;
transform: skew(0deg,10deg);
}
.red{
width: 300px;
height: 300px;
background: red;
position: absolute;
top: 131px;
left: 321px;
transform: skew(-48deg,61deg);
}
.red::before{
content: "";
width: 300px;
height: 40px;
background: yellow;
position: absolute;
top: 310px;
left: 23px;
transform: skew(-45deg,23deg);
}
@keyframes autoRotate{
0%{

}
100%{
transform: rotate(3600deg)
}
}
.animate{
animation: autoRotate 24s linear infinite ;
}
</style>
</head>
<body>
<div class="container animate">
<div class="green"></div>
<div class="red"></div>
</div>
</body>
</html>

 

此处应该放原文地址 http://www.cnblogs.com/199316xu/p/6435332.html

不妥之处请见谅

posted @ 2017-02-24 14:40  丫丫丫  阅读(113)  评论(0)    收藏  举报