css3 制作阳光,纯css3海浪,太阳,月亮

body {

background:#b1dfbb

}

.sha {

width:300px;

height:300px;

margin:200px auto;

box-shadow:2px 2px 2px #999999;

position:relative;

overflow:hidden;

background:#03A9F4;

}

span {

display:inline-block;

width:600px;

height:600px;

border-radius:40%;

background:white;

position:absolute;

bottom:100px;

left:-150px;

animation:zhuan linear infinite;

}

span:nth-child(5) {

animation-duration:6s;

opacity:.9

}

span:nth-child(2) {

animation-duration:6s;

opacity:.5

}

span:nth-child(3) {

animation-duration:8s;

opacity:.3

}

span:nth-child(4) {

animation-duration:10s;

opacity:.5

}

@keyframes zhuan {

from {

transform:rotate(360deg);

}

}.taiyang {

position:absolute;

width:40px;

height:40px;

background:#e0a800;

z-index:1;

left:600px;

top:35px;

border-radius:50%;

-webkit-box-reflect:below 160px;

box-reflect:below 160px;

}

p {

width:40px;

height:40px;

opacity:.1;

position:absolute;

top:-16px;

z-index:0;

animation:zhuan linear infinite;

}

p:nth-child(1) {

animation-duration:2s;

background:coral

}

p:nth-child(2) {

animation-duration:3s;

background:red

}

p:nth-child(3) {

animation-duration:4s;

background:yellow

}

p:nth-child(4) {

animation-duration:5s;

background:darkred

}

p:nth-child(5) {

animation-duration:6s;

background:indianred

}

p:nth-child(6) {

animation-duration:7s;

background:mediumvioletred

}

p:nth-child(7) {

animation-duration:8s;

background:orangered

}

p:nth-child(8) {

animation-duration:9s;

background:palevioletred

}

p:nth-child(9) {

animation-duration:10s;

background:orange

}

p:nth-child(10) {

animation-duration:11s;

background:orangered

}

.taizuan {

z-index:5;

width:1200px;

height:1200px;

border-radius:50%;

left:-460px;

position:relative;

margin:0 auto;

animation:zhuan 60s linear infinite;

}

.yueliang {

position:absolute;

width:40px;

height:40px;

background:#e0a800;

z-index:1;

left:600px;

top:926px;

border-radius:50%;

-webkit-box-reflect:below 160px;

box-reflect:below 160px;

background:yellow

}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值