分享web开发知识

注册/登录|最近发布|今日推荐

主页 IT知识网页技术软件开发前端开发代码编程运营维护技术分享教程案例
当前位置:首页 > 代码编程

纯CSS3按钮边框线条动画特效--底部边框hover从中点向两侧变长

发布时间:2023-09-06 01:29责任编辑:赖小花关键词:CSS动画

html:

<a href=‘‘ class=‘ui-box bottom-inOutSpread‘>Audio Description</a>

css:
.ui-box {
???text-decoration:none;
???border:none;
???font-family:‘Roboto‘, sans-serif;
???font-size:14px;
???position:relative;
???vertical-align:baseline;
???padding:10px
}
.bottom-inOutSpread:before,.bottom-inOutSpread:after,.bottom-inOutSpread>.ui-border-element:before,.bottom-inOutSpread>.ui-border-element:after {
???content:‘‘;
???position:absolute
}
.bottom-inOutSpread:after {
???border-bottom:2px solid #333;
???left:51%;
???right:51%;
???bottom:0px;
???-webkit-transition-property:all;
???-moz-transition-property:all;
???-o-transition-property:all;
???transition-property:all;
???-webkit-transition-timing-function:cubic-bezier(0, 0.98, 0.51, 0.93);
???-moz-transition-timing-function:cubic-bezier(0, 0.98, 0.51, 0.93);
???-o-transition-timing-function:cubic-bezier(0, 0.98, 0.51, 0.93);
???transition-timing-function:cubic-bezier(0, 0.98, 0.51, 0.93);
???-webkit-transition-duration:200ms;
???-moz-transition-duration:200ms;
???-o-transition-duration:200ms;
???transition-duration:200ms;
???-webkit-transition-delay:0s;
???-moz-transition-delay:0s;
???-o-transition-delay:0s;
???transition-delay:0s
}
.bottom-inOutSpread:hover:after {
???left:0%;
???right:0%
}
.bottom-inOutSpread:not(:hover):after {
???-webkit-transition-delay:0s;
???-moz-transition-delay:0s;
???-o-transition-delay:0s;
???transition-delay:0s
}





纯CSS3按钮边框线条动画特效--底部边框hover从中点向两侧变长

原文地址:http://www.cnblogs.com/HONGYE1994/p/8012093.html

知识推荐

我的编程学习网——分享web前端后端开发技术知识。 垃圾信息处理邮箱 tousu563@163.com 网站地图
icp备案号 闽ICP备2023006418号-8 不良信息举报平台 互联网安全管理备案 Copyright 2023 www.wodecom.cn All Rights Reserved