首页 > 其他 > 详细

鼠标移到某个地方时,从左向右划出一条线的动画

时间:2017-09-09 23:42:30      阅读:467      评论:0      收藏:0      [点我收藏+]
.line {
    border-bottom: 2px solid #E40012;
    width:0px;
    display: inline-block;
    height: 2px;
    margin-bottom: 6px;
}
.animation-box:hover .line {
    animation: test 0.5s linear;
    animation-fill-mode :forwards;
}
@-webkit-keyframes test {
    0%{
        width: 5px;
    }

    20%{
        width: 10px;
    }

    40%{
        width: 15px;
    }

    60%{
        width: 20px;
    }

    80%{
        width: 25px;
    }

    100%{
        width: 30px;
    }
}

  

鼠标移到某个地方时,从左向右划出一条线的动画

原文:http://www.cnblogs.com/candy-Yao/p/7499768.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!