Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
CSS3 Button
Hover
Effects
Effect #1
Learn More
Learn More
Learn More
Learn More
Learn More
Effect #2
Learn More
Learn More
Learn More
Learn More
Learn More
Effect #3
Learn More
Learn More
Learn More
Learn More
Learn More
Effect #4
Learn More
Learn More
Learn More
Learn More
Learn More
Effect #5
Learn More
Learn More
Learn More
Learn More
Learn More
css
/* common styles !!!YOU DON'T NEED THEM */ body { background-color: #F1E9DA; } body .container { width: 850px; margin: 70px auto 0px auto; text-align: center; } body .container h1 { font-family: 'Droid Serif', serif; font-weight: 400; font-style: normal; font-size: 30px; margin-bottom: 30px; } body .container h1 span { font-weight: 700; font-style: italic; color: #D90368; border-bottom: 2px dashed currentColor; } body .container .button-effect { padding: 30px 0px; } body .container .button-effect h2 { font-family: 'Droid Serif', serif; font-size: 20px; margin-bottom: 40px; } body .container .button-effect a { margin-right: 17px; } body .container .button-effect a:nth-child(2) { background-color: #541388; } body .container .button-effect a:nth-child(3) { background-color: #D90368; } body .container .button-effect a:nth-child(4) { background-color: #104547; } body .container .button-effect a:nth-child(5) { background-color: #4F000B; } body .container .button-effect a:nth-child(6) { background-color: #F28123; } body .container .button-effect a:last-child { margin-right: 0px; } /* button styles !!!YOU NEED THEM !!!ALSO YOU NEED TO ADD FONTWESOME */ .effect { text-align: center; display: inline-block; position: relative; text-decoration: none; color: #fff; text-transform: capitalize; /* background-color: - add your own background-color */ font-family: 'Roboto', sans-serif; /* put your font-family */ font-size: 18px; padding: 20px 0px; width: 150px; border-radius: 6px; overflow: hidden; } /* effect-1 styles */ .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; } /* effect-2 styles */ .effect.effect-2 { -webkit-transition: all 0.2s linear 0s; transition: all 0.2s linear 0s; } .effect.effect-2:before { content: "\f0a4"; font-family: FontAwesome; font-size: 15px; 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; position: absolute; top: 0; right: -30px; width: 30px; height: 100%; background-color: rgba(255, 255, 255, 0.3); border-radius: 0px 6px 6px 0px; -webkit-transition: all 0.2s linear 0s; transition: all 0.2s linear 0s; text-align: center; } .effect.effect-2:hover { text-indent: -30px; } .effect.effect-2:hover:before { right: 0; text-indent: 0px; } /* effect-3 styles */ .effect.effect-3 { -webkit-transition: all 0.2s linear 0s; transition: all 0.2s linear 0s; } .effect.effect-3:before { content: "\f178"; font-family: FontAwesome; 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; position: absolute; top: 100%; left: 0px; width: 100%; height: 100%; text-align: center; font-size: 30px; -webkit-transition: all 0.2s linear 0s; transition: all 0.2s linear 0s; } .effect.effect-3:hover { text-indent: -9999px; } .effect.effect-3:hover:before { top: 0; text-indent: 0; } /* effect-4 styles */ .effect.effect-4 { -webkit-transition: all 0.2s linear 0s; transition: all 0.2s linear 0s; } .effect.effect-4:before { content: "\f178"; font-family: FontAwesome; 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; position: absolute; top: 0; left: 0px; width: 100%; height: 100%; text-align: center; font-size: 30px; -webkit-transform: scale(0, 1); transform: scale(0, 1); -webkit-transition: all 0.2s linear 0s; transition: all 0.2s linear 0s; } .effect.effect-4:hover { text-indent: -9999px; } .effect.effect-4:hover:before { -webkit-transform: scale(1, 1); transform: scale(1, 1); text-indent: 0; } /* effect-5 styles */ .effect.effect-5 { -webkit-transition: all 0.2s linear 0s; transition: all 0.2s linear 0s; } .effect.effect-5:before { content: "\f054"; font-family: FontAwesome; 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; position: absolute; top: 0; left: 0px; height: 100%; width: 30px; background-color: rgba(255, 255, 255, 0.3); border-radius: 0 50% 50% 0; -webkit-transform: scale(0, 1); transform: scale(0, 1); -webkit-transform-origin: left center; transform-origin: left center; -webkit-transition: all 0.2s linear 0s; transition: all 0.2s linear 0s; } .effect.effect-5:hover { text-indent: 30px; } .effect.effect-5:hover:before { -webkit-transform: scale(1, 1); transform: scale(1, 1); text-indent: 0; }
JavaScript
粒子
时间
文字
hover
canvas
3d
游戏
音乐
火焰
水波
轮播图
鼠标跟随
动画
css
加载动画
导航
菜单
按钮
滑块
tab
弹出层
统计图
svg
×
Close
在线代码下载提示
开通在线代码永久免费下载,需支付20jQ币
开通后,在线代码模块中所有代码可终身免费下!
您已开通在线代码永久免费下载,关闭提示框后,点下载代码可直接下载!
您已经开通过在线代码永久免费下载
对不起,您的jQ币不足!可通过发布资源 或
直接充值获取jQ币
取消
开通下载
<!doctype html> <html> <head> <meta charset="utf-8"> <title>CSS3 按钮悬停效果-jq22.com</title> <script src="https://www.jq22.com/jquery/jquery-1.10.2.js"></script> <style>
</style> </head> <body>
<script>
</script>
</body> </html>
2012-2021 jQuery插件库版权所有
jquery插件
|
jq22工具库
|
网页技术
|
广告合作
|
在线反馈
|
版权声明
沪ICP备13043785号-1
浙公网安备 33041102000314号