Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
:hover, please
Now here
Around and inside I
Around and inside II
:hover with animation
css
@import url(https://fonts.googleapis.com/css?family=Quando); *, *:after, *:before { box-sizing: border-box; -moz-box-sizing: border-box; } * {margin:0;padding:0;border:0 none;position: relative; outline: none; } html, body { background: #004050; font-family: Quando; font-weight: 300; width: 100%; } h2, h3 { background: #0D757D; width: 100%; min-height: 200px; line-height: 200px; font-size: 3rem; font-weight: normal; text-align: center; color: rgba(0,0,0,.4); margin: 3rem auto 0; } .uno {background: #ff5e33;} .dos.bis {background: #85144B;} .dos {background: #FADD40;} h3 {background: #2B5B89;} h2 > a, h3 > a { text-decoration: none; color: rgba(0,0,0,.4); z-index: 1; } h2 > a:before { content: ""; position: absolute; width: 100%; height: 3px; bottom: 0; left: 0; background: #9CF5A6; visibility: hidden; border-radius: 5px; transform: scaleX(0); transition: .25s linear; } h2 > a:hover:before, h2 > a:focus:before { visibility: visible; transform: scaleX(1); } .uno a:before { background: rgba(0,0,0,0); box-shadow: 0 0 10px 2px #ffdb00; } .dos > a:after { content: ""; position: absolute; width: 100%; height: 7px; border: 1px solid #000; bottom: -2px; left: 0; background: #fff; border-radius: 5px; opacity: 0; transform: scalex(0); transition: .5s; } .dos.bis > a:after { opacity: .05; transform: scalex(1); } .dos:hover > a:after { opacity: .15; transform: scalex(1); } .dos.bis > a:before { background: rgba(0,0,0,0); box-shadow: 0 0 10px 2px #FADD40; } .dos > a:before { background: rgba(0,0,0,0); box-shadow: 0 0 10px 2px #FF5E33; } h3 > a:before { content: ""; background: #7FDBFF; position: absolute; width: 100%; height: 5px; bottom: 0; left: 0; border-radius: 5px; transform: scaleX(0); animation: 1.4s forwards no-hover-v linear; animation-fill-mode: forwards; z-index: -1; } h3 > a:hover:before, h3 > a:focus:before { animation: .5s forwards hover-v linear; animation-fill-mode: forwards; } @keyframes hover-v { 0% { transform: scaleX(0); height: 5px; } 45% { transform: scaleX(1.05); height: 5px; } 55% {height: 5px;} 100% { transform: scaleX(1.05); height: 3.8rem; } } @keyframes no-hover-v { 0% { transform: scaleX(1.05); height: 3.8rem; } 45% {height: 5px;} 55% { transform: scaleX(1.05); height: 5px; opacity: 1; } 100% { transform: scaleX(0); height: 5px; opacity: .02; } } p {padding: .5rem;} p a {color: rgba(255,255,255,.5)}
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号