首页 > 其他 > 详细

鼠标放上去 从背景颜色从中间开始变化

时间:2018-01-31 23:03:30      阅读:448      评论:0      收藏:0      [点我收藏+]
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
.caseMore {
    width:186px;height:44px;line-height:44px;text-align: center;margin:0 auto;border:1px dashed #f38900;margin-bottom:20px;    
}
.caseMore  a {
    position: relative;z-index:22;text-decoration: none;color:#333;
}
.caseMore  a .moreI {
    transition:all 0.4s ease 0s;-webkit-transition:all 0.4s ease 0s;
    transition:all 0.4s ease 0s;width:0;height:44px;position: absolute;
    color:red;left:50%;margin-left:0;top:50%;margin-top:-22px;z-index:1;

}
.caseMore:hover  a  .moreI {
    background-color: red;
    width:186px;
    /*border-radius:5px;*/
    margin-left:-93px;
    z-index:-111;
}
.caseMore:hover a {
    color:#fff;

}
    </style>
</head>
<body>
    <div class="caseMore">
             <a href="#" style="display:block;width:100%;height:100%;">
                  MORE
                  <i class="moreI"></i>
             </a>
         </div>          
</body>
</html>

技术分享图片

技术分享图片

鼠标放上去 从背景颜色从中间开始变化

原文:https://www.cnblogs.com/agansj/p/8394933.html

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