html添加到购物车飞入动画效果,CSS3-购物车飞入动画



购物车飞入动画:

.con{

width: 1000px;

height: 700px;

border: 1px solid transparent;

position:relative;

}

.che{

width: 200px;

height:200px;

background-image: url("img/c.jpg");

background-repeat: no-repeat;

margin-top: 100px;

margin-right: 100px;

position: absolute;

right: 0px;

top: 0px;

}

.cont{

height: 280px;

margin-top: 50%;

}

.wu1{

width: 200px;

height: 250px;

margin: 10px;

background-image: url("img/10.png");

background-repeat: no-repeat;

-webkit-transition: all 1s;

float: left;

}

.wu1:active{

transform: translate(350%,-180%) scale(0.3);

opacity:0

}

.wu2{

width: 200px;

height: 250px;

margin: 10px;

background-image: url("img/12.png");

background-repeat: no-repeat;

-webkit-transition: all 1s;

float: left;

}

.wu2:active{

transform: translate(250%,-180%) scale(0.3);

opacity:0

}

.wu3{

width: 200px;

height: 250px;

margin: 10px;

background-image: url("img/13.png");

background-repeat: no-repeat;

-webkit-transition: all 1s;

float: left;

}

.wu3:active{

transform: translate(140%,-180%) scale(0.3);

opacity:0

}

.wu4{

width: 200px;

height: 250px;

margin: 10px;

background-image: url("img/13.png");

background-repeat: no-repeat;

-webkit-transition: all 1s;

float: left;

}

.wu4:active{

transform: translate(30%,-180%) scale(0.3);

opacity:0

}

运行结果:

0818b9ca8b590ca3270a3433284dd417.png

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值