web299.com
全部
教育
语言/资格考试
法律
互联网
政务民生
Word模板
Excel模板
PPT模板
网页特效
小程序模板
网站模板
首页
教育
语言/资格考试
法律
互联网
政务民生
Word模板
Excel模板
PPT模板
网页特效
小程序模板
网站模板
当前位置:
首页
>
网页特效
>
按钮特效
5种纯CSS3鼠标hover按钮动画效果
分类:
按钮特效
日期:
2024-05-14
点击(0)
评论(0)
演 示
免费下载
简介
##### HTML结构 该按钮特效使用a元素来来作为按钮。 ```html
Learn More
``` ##### CSS样式 按钮的通用样式如下: ```html .effect { display: inline-block; position: relative; text-decoration: none; color: #fff; text-transform: capitalize; font-family: 'Roboto', sans-serif; font-size: 18px; padding: 20px 0px; width: 150px; border-radius: 6px; overflow: hidden; } ``` 每一种按钮hover动画效果通过effect-*来表示,第一种按钮hover动画效果的CSS样式如下: ```html .effect.effect-1 { -webkit-transition: all 0.2s linear 0s; transition: all 0.2s linear 0s; } .effect.effect-1:before { content: "\f178"; font-family: FontAwesome; font-size: 15px; position: absolute; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; right: 0; top: 0; opacity: 0; height: 100%; width: 40px; -webkit-transition: all 0.2s linear 0s; transition: all 0.2s linear 0s; } .effect.effect-1:hover { text-indent: -20px; } .effect.effect-1:hover:before { opacity: 1; text-indent: 0px; } ```
相关推荐
html5浪漫粒子表白文字特效
SlidesJS幻灯片特效
html5瀑布流相册特效
css3 svg实现的情人节表白鲜花动画特效
t-scroll.js基于ES6的DOM元素,过渡动画库插件
纯js写省市区三级联动效果
广告
广告