html风车相册代码,Css Html 大风车(示例代码)

简介这篇文章主要介绍了Css Html 大风车(示例代码)以及相关的经验技巧,文章约3675字,浏览量138,点赞数2,值得参考!

div{ border-radius: 50%;position: absolute; }

.red{

border-top:100px solid red;

border-right: 100px solid transparent;

border-bottom: 100px solid transparent;

border-left: 100px solid red;

transform:rotate(-45deg);

left:150px;

top:50px;

}

.yellow{

border-top:100px solid yellow;

border-right: 100px solid transparent;

border-bottom: 100px solid transparent;

border-left: 100px solid yellow;

left:250px;

top:150px;

transform:rotate(45deg);

}

.pink{

border-top:100px solid pink;

border-right: 100px solid transparent;

border-bottom: 100px solid transparent;

border-left: 100px solid pink;

left:150px;

top:250px;

transform:rotate(135deg);

}

.cyna{

border-top:100px solid cyan;

border-right: 100px solid transparent;

border-bottom: 100px solid transparent;

border-left: 100px solid cyan;

left:50px;

top:150px;

transform:rotate(-135deg);

}

@keyframes run{

from{transform: rotate(0deg);}

to{transform: rotate(360deg);}

}

@-webkit-keyframes run{

from{transform: rotate(0deg);}

to{transform: rotate(360deg);}

}

.wrap{

width: 500px;

height: 500px;

line-height: 500px;

text-align: center;

border-radius: 0;

position: relative;

margin:0 auto;

animation:run 2s linear infinite;

}

.limb{

width: 10px;

height: 300px;

border-radius: 0;

background-color: #000;

margin: 0 auto;

left: 245px;

top: 0;

margin-top: -250px;

position: static;

z-index: -1;

}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值