css3实现宽度渐变⽤css3实现宽度渐显效果,记录⼀下
效果:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<title>宽度渐变动画</title>
<style>
.bg {
width: 365px;
height: 366px;
position: relative;
background: url(img/bg.png);
}
.
line {
width: 407px;
height: 252px;
left: -20px;
top: 55px;
monitor-heartbeattion: absolute;
background: url(img/line.png);
z-index: 3;
-webkit-animation: show2 3s ease-in-out;
animation: show2 3s ease-in-out;
}
@-webkit-keyframes show2{
0%{
opacity:0;
width:0;
}
100%{
opacity:1;
width:407px;
html实现用户注册登录代码}
}
@keyframes show2{
0%{
opacity:0;
width:0;
}
100%{
opacity:1;
width:407px;
}
}
</style>
</head>
<body>
<div class="bg">
<div class="line"></div>
</div>
</body>
</html>

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。