css筋斗云,CSS3 七龙珠筋斗云动画

CSS

语言:

CSSSCSS

确定

body {

margin: 0;

padding: 0;

background: #6DD3E7

}

.centered {

position: fixed;

top: 50%;

transform: translate(-50%, -50%);

}

/** Kinto **/

.kinto {

-webkit-animation: kinto 0.8s linear forwards, kinto2 2s 0s alternate infinite;

/* Safari 4+ */

z-index: 1

}

@-webkit-keyframes kinto {

0% {

left: 0%;

}

100% {

left: 50%;

}

}

@-webkit-keyframes kinto2 {

0% {

top: 49%;

}

100% {

top: 51%;

}

}

.kinto ul {

list-style: none;

margin: 0;

padding: 0;

}

.kinto ul li {

background: #FDF264;

float: left;

border-radius: 360px;

border-right: 14px solid #DAC02B;

margin-left: -20px;

opacity: 1;

-webkit-transform: rotate(65deg);

-webkit-animation: cloud 2s 0s alternate infinite;

/* Safari 4+ */

}

.kinto ul li:first-child {

width: 46px;

height: 60px;

margin-left: 30px;

margin-top: -20px;

}

.kinto ul li:nth-child(2) {

width: 26px;

height: 40px;

margin-left: -82px;

}

.kinto ul li:nth-child(3) {

width: 56px;

height: 70px;

margin-left: -20px;

margin-top: -30px;

}

.kinto ul li:nth-child(4) {

width: 26px;

height: 40px;

margin-left: -20px;

}

@-webkit-keyframes cloud {

50% {

-webkit-transform: scale(1.1) rotate(85deg);

}

100% {

-webkit-transform: scale(1) rotate(85deg);

}

}

.ray {

position: fixed;

height: 18px;

top: 49%;

-webkit-animation: ray 0.8s linear forwards, ray2 2s 0s alternate infinite;

;

z-index: 1;

}

@-webkit-keyframes ray {

0% {

width: 0%;

}

100% {

width: 50%;

}

}

@-webkit-keyframes ray2 {

0% {

top: 48%;

}

100% {

top: 50%;

}

}

.yellow {

background-color: #FDF264;

height: 70%;

}

.shadow {

background-color: #DAC02B;

height: 30%;

}

.cloud {

position: fixed;

}

.cloud ul {

list-style: none;

margin: 0;

padding: 0;

}

.cloud ul li {

background: #f2f2f2;

float: left;

border-radius: 360px;

-webkit-transform: rotate(65deg);

}

/** Cloud1 **/

.cloud1 {

top: 40%;

-webkit-animation: movingCloud 1.3s infinite;

}

.cloud1 ul li {

border-right: 28px solid #d3d3d3;

margin-left: -40px;

-webkit-animation: cloud 2s 0s alternate infinite;

/* Safari 4+ */

}

.cloud1 ul li:first-child {

width: 92px;

height: 120px;

margin-left: 60px;

margin-top: -40px;

}

.cloud1 ul li:nth-child(2) {

width: 52px;

height: 80px;

margin-left: -164px;

}

.cloud1 ul li:nth-child(3) {

width: 102px;

height: 140px;

margin-left: -40px;

margin-top: -60px;

}

.cloud1 ul li:nth-child(4) {

width: 52px;

height: 80px;

margin-left: -40px;

}

/** Cloud2 **/

.cloud2 {

top: 55%;

-webkit-animation: movingCloud 1.5s infinite;

z-index: 2;

}

.cloud2 ul li {

border-right: 42px solid #d3d3d3;

margin-left: -60px;

-webkit-animation: cloud 2s 0s alternate infinite;

/* Safari 4+ */

}

.cloud2 ul li:first-child {

width: 138px;

height: 180px;

margin-left: 90px;

margin-top: -60px;

}

.cloud2 ul li:nth-child(2) {

width: 78px;

height: 120px;

margin-left: -246px;

}

.cloud2 ul li:nth-child(3) {

width: 153px;

height: 210px;

margin-left: -60px;

margin-top: -90px;

}

.cloud2 ul li:nth-child(4) {

width: 78px;

height: 120px;

margin-left: -60px;

}

/** Cloud3 **/

.cloud3 {

top: 45%;

-webkit-animation: movingCloud 0.8s 1s infinite;

z-index: 0;

left: 150%;

}

.cloud3 ul li {

border-right: 14px solid #d3d3d3;

margin-left: -20px;

-webkit-animation: cloud 2s 0s alternate infinite;

/* Safari 4+ */

}

.cloud3 ul li:first-child {

width: 46px;

height: 60px;

margin-left: 30px;

margin-top: -20px;

}

.cloud3 ul li:nth-child(2) {

width: 26px;

height: 40px;

margin-left: -82px;

}

.cloud3 ul li:nth-child(3) {

width: 56px;

height: 70px;

margin-left: -20px;

margin-top: -30px;

}

.cloud3 ul li:nth-child(4) {

width: 26px;

height: 40px;

margin-left: -20px;

}

@-webkit-keyframes movingCloud {

0% {

left: 150%;

}

100% {

left: -50%;

}

}

/** Lines **/

.line {

position: fixed;

background: #d3d3d3;

height: 2px;

width: 50px;

left: 150%;

}

.line1 {

top: 45%;

-webkit-animation: movingCloud 0.8s infinite;

}

.line2 {

top: 48%;

-webkit-animation: movingCloud 0.9s 1s infinite;

}

.line3 {

top: 50%;

-webkit-animation: movingCloud 1.2s 0.5s infinite;

}

.line4 {

top: 52%;

-webkit-animation: movingCloud 0.7s 1.5s infinite;

}

.line5 {

top: 55%;

-webkit-animation: movingCloud 0.6s 1s infinite;

}

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值