Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
Style 1
Style 2
Style 3
Style 4
Style 5
Style 6
css
:root { --primary: 0, 0%, 100%; --secondary: 202, 73%, 28%; --c: cubic-bezier(1,.49,.16,.96); } body { display: flex; flex-direction: column; justify-content: center; align-items: center; width: 100%; height: 100vh; font-family: 'Poppins', 'Helvetica', sans-serif; background-image: linear-gradient(15deg, #13547a 0%, #80d0c7 100%); } .btn { --w: 300px; --h: 45px; position: relative; display: flex; width: var(--w); height: var(--h); border: 1px solid hsl(var(--primary)); } div {margin-bottom: 20px;} div:last-child {margin-bottom: 0px;} i { content: ''; width: 100%; height: 100%; transition: all .5s var(--c); background: hsl(var(--primary)); } i:nth-child(1) {transition-delay: .02s;} i:nth-child(2) {transition-delay: .04s;} i:nth-child(3) {transition-delay: .06s;} i:nth-child(4) {transition-delay: .08s;} i:nth-child(5) {transition-delay: .10s;} i:nth-child(6) {transition-delay: .12s;} i:nth-child(7) {transition-delay: .14s;} i:nth-child(8) {transition-delay: .16s;} i:nth-child(9) {transition-delay: .18s;} i:nth-child(10) {transition-delay: .2s;} span { position: absolute; width: 100%; font-size: 14px; font-weight: 800; line-height: var(--h); letter-spacing: 4px; text-align: center; text-transform: uppercase; color: hsl(var(--primary)); transition: all .4s var(--c); z-index: 100; } .style-1, .style-2 { flex-direction: column; } .style-3, .style-4, .style-5, .style-6 { flex-direction: row; } .style-1 i, .style-5 i {transform-origin: center left;} .style-2 i, .style-6 i {transform-origin: center right;} .style-3 i {transform-origin: center bottom;} .style-4 i {transform-origin: center top;} .style-1 i, .style-2 i, .style-5 i, .style-6 i { transform: scaleX(0); } .style-3 i, .style-4 i { transform: scaleY(0); } .style-1:hover i, .style-2:hover i, .style-5:hover i, .style-6:hover i { transform: scaleX(1); } .style-3:hover i, .style-4:hover i { transform: scaleY(1); } .btn:hover span { color: hsl(var(--secondary)); transition-delay: .4s; }
JavaScript
粒子
时间
文字
hover
canvas
3d
游戏
音乐
火焰
水波
轮播图
鼠标跟随
动画
css
加载动画
导航
菜单
按钮
滑块
tab
弹出层
统计图
svg
×
Close
在线代码下载提示
开通在线代码永久免费下载,需支付20jQ币
开通后,在线代码模块中所有代码可终身免费下!
您已开通在线代码永久免费下载,关闭提示框后,点下载代码可直接下载!
您已经开通过在线代码永久免费下载
对不起,您的jQ币不足!可通过发布资源 或
直接充值获取jQ币
取消
开通下载
<!doctype html> <html> <head> <meta charset="utf-8"> <title>css按钮悬停效果-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号