码迷,mamicode.com
首页 > 其他好文 > 详细

风车的动图制作

时间:2019-09-01 16:52:53      阅读:84      评论:0      收藏:0      [点我收藏+]

标签:float   order   inf   doctype   ack   代码   orm   图片   mic   

代码:

 

<!--<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>风车</title>
<style>
.box {
width: 100px;
height: 100px;
margin:100px auto;
transition: all 4s linear;
}
.box div{
width: 40px;
height: 40px;
margin:5px;
border:0px solid #000;
float:left;
/*开启怪异盒子模型*/
box-sizing:border-box;
background: linear-gradient(#66FFFF,#FF66FF);
}
.box div:nth-child(1),.box div:nth-child(4){
border-radius:0 70%;
}
.box div:nth-child(2),.box div:nth-child(3){
border-radius:70% 0;
}
.box:hover{
transform: rotate(720deg);
}
</style>
</head>
<body>
<div class="box">
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</body>
</html>-->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>风车</title>
<style>
body {
background:#ffffff;
}
.box {
width: 150px;
height: 150px;
margin:150px auto;
transition: all 6s linear;
cursor: pointer;
}
.box:hover{
transform: rotate(1440deg);
}
.box div{
width: 65px;
height: 65px;
margin:5px;
border:0px solid #000;
float:left;
/*开启怪异盒子模型*/
box-sizing:border-box;
}
.box div:nth-child(1){
background: linear-gradient(315deg,#66FFFF,#FF66FF);
border-radius:0 90%; /* 1-3 2-4 */
}
.box div:nth-child(2){
background: linear-gradient(45deg,#66FFFF,#FF66FF);
border-radius:90% 0;
}
.box div:nth-child(3){
background: linear-gradient(225deg,#66FFFF,#FF66FF);
border-radius:90% 0;
}
.box div:nth-child(4){
background: linear-gradient(135deg,#66FFFF,#FF66FF);
border-radius:0 90%;
}
</style>
</head>
<body>
<div class="box">
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</body>
</html>

 

效果:

 

技术图片

 

风车的动图制作

标签:float   order   inf   doctype   ack   代码   orm   图片   mic   

原文地址:https://www.cnblogs.com/yanyanstyle/p/11442435.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!