快速登录
css3 animation+keyframes实现 扫一扫效果
xiaowei
【极全网】css3 animation+keyframes实现 扫一扫效果目录1个子文件夹1个文件3个

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
body {
background: #aaa;
}
.bg,
.pane {
width: 200px;
height: 200px;
margin: 0 auto;
overflow: hidden;
}
.bg {
position: relative;
background: url(images/2.png) center center no-repeat;
border: 1px solid #b0f9e4;
}
.pane {
position: absolute;
z-index: -1;
background: url(images/4.png) center center no-repeat;
animation: move 1.5s ease-in-out infinite ;
-webkit-animation: move 1.5s ease-in-out infinite;
}
@keyframes move {
from{top:-200px}
to{top:0}
}
-webkit-@keyframes move {
from{top:-200px}
to{top:0}
}
</style>
</head>
<body>
<div class="bg">
<div class="pane"></div>
</div>
</body>
</html>
扫一扫在手机打开
付费阅读
选择支付方式:
赞赏
¥100.00
¥100.00
¥100.00
¥100.00
¥100.00
¥100.00
¥100.00
¥100.00
选择支付方式:
购买成功
3秒后关闭
微信扫码
支付金额:¥1
分享赚钱
预估获得金额:元
复制链接