css手指点击样式,CSS3-通过 Animation实现手指点击动画效果代码

CSS3-通过 Animation实现手指点击动画效果代码

e997116c54f1e5754a12d6982fe98764.gif

html代码:

css代码.wrapper {

/* position: absolute;

top: 50%;

left: 50%; */

position: relative;

overflow: hidden;

width: 500px;

height: 500px;

margin: 0 auto;

background-color: black;

/* margin: -250px 0 0 -250px; */

}

.circle {

position: absolute;

left: 50%;

top: 50%;

margin: -70px 0 0 -46px;

background: url("./shou2.png") center center no-repeat;

width: 82px;

height: 62px;

animation: circleHide 1s ease infinite both;

}

.finger {

background: url("./shou1.png") center center no-repeat;

width: 100px;

height: 140px;

margin: 170px auto;

animation: fingerHandle 1s ease infinite both;

}

动画效果1:@keyframes fingerHandle {

0% {

transform: none;

}

70% {

transform: scale3d(.8, .8, .8);

}

100% {

transform: none;

}

}

动画2:@keyframes circleHide {

0% {

opacity: 0;

transform: scale3d(0, 0, 0);

}

70% {

opacity: 1;

transform: scale3d(1.2, 1.2, 1.2);

}

100% {

opacity: 0;

transform: scale3d(0, 0, 0);

}

}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值