Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
HOVER
HOVER
HOVER
css
html { width: 100%; height: 100%; text-rendering: optimizeLegibility; } body { margin: 0; padding: 0; width: 100%; max-width: 100%; height: 100%; text-rendering: optimizeLegibility; } .section { width: 100%; height: 50%; position: absolute; } .one { top: 0%; left: 0; background: #000; } .one div { color: #fff; position: absolute; top: 50%; left: 50%; -webkit-transform: translate(-50%, -50%); -moz-transform: translate(-50%, -50%); -o-transform: translate(-50%, -50%); transform: translate(-50%, -50%); font-family: 'Montserrat', sans-serif; font-size: 32px; cursor: pointer; padding: 20px; -webkit-border-radius: 10px; -moz-border-radius: 10px; -o-border-radius: 10px; border-radius: 10px; -webkit-transition: ease all 0.4s; -moz-transition: ease all 0.4s; -o-transition: ease all 0.4s; transition: ease all 0.4s; z-index: 10; } .one div:hover { color: #000; } .one div::after { content: " "; position: absolute; top: 0px; left: 0px; width: 100%; height: 100%; background: #fff; z-index: -10; -webkit-border-radius: 10px; -moz-border-radius: 10px; -o-border-radius: 10px; border-radius: 10px; opacity: 0; -webkit-transition: ease all 0.3s; -moz-transition: ease all 0.3s; -o-transition: ease all 0.3s; transition: ease all 0.3s; } .one div::before { content: " "; position: absolute; top: 0px; left: 0px; width: 100%; height: 100%; z-index: -10; -webkit-border-radius: 10px; -moz-border-radius: 10px; -o-border-radius: 10px; border-radius: 10px; -webkit-box-shadow: 0px 0px 0px #ccc, 0px 0px 0px #808080, 0px 0px 0px #505050; -moz-box-shadow: 0px 0px 0px #ccc, 0px 0px 0px #808080, 0px 0px 0px #505050; -o-box-shadow: 0px 0px 0px #ccc, 0px 0px 0px #808080, 0px 0px 0px #505050; box-shadow: 0px 0px 0px #ccc, 0px 0px 0px #808080, 0px 0px 0px #505050; -webkit-transition: cubic-bezier(0.55, 0, 0.1, 1) all 0.4s; -moz-transition: cubic-bezier(0.55, 0, 0.1, 1) all 0.4s; -o-transition: cubic-bezier(0.55, 0, 0.1, 1) all 0.4s; transition: cubic-bezier(0.55, 0, 0.1, 1) all 0.4s; opacity: 0; } .one div:hover::after { opacity: 1.0; } .one div:hover::before { opacity: 1.0; -webkit-box-shadow: 0px -10px 0px #ccc, 0px -20px 0px #808080, 0px -30px 0px #505050; -moz-box-shadow: 0px -10px 0px #ccc, 0px -20px 0px #808080, 0px -30px 0px #505050; -o-box-shadow: 0px -10px 0px #ccc, 0px -20px 0px #808080, 0px -30px 0px #505050; box-shadow: 0px -10px 0px #ccc, 0px -20px 0px #808080, 0px -30px 0px #505050; animation: dribble 1s cubic-bezier(0.55, 0, 0.1, 1) infinite alternate; } @keyframes dribble { 50% { -webkit-box-shadow: 50px -30px 0px #808080, 70px -40px 0px #505050; -moz-box-shadow: 50px -30px 0px #808080, 70px -40px 0px #505050; -o-box-shadow: 50px -30px 0px #808080, 70px -40px 0px #505050; box-shadow: 50px -30px 0px #808080, 70px -40px 0px #505050; } 100% { -webkit-box-shadow: -50px 30px 0px #808080, -70px 40px 0px #505050; -moz-box-shadow: -50px 30px 0px #808080, -70px 40px 0px #505050; -o-box-shadow: -50px 30px 0px #808080, -70px 40px 0px #505050; box-shadow: -50px 30px 0px #808080, -70px 40px 0px #505050; } } .two { top: 50%; left: 0; background: #EA038C; } .two div { position: absolute; top: 50%; left: 50%; -webkit-transform: translate(-50%, -50%); -moz-transform: translate(-50%, -50%); -o-transform: translate(-50%, -50%); transform: translate(-50%, -50%); color: #fff; font-family: 'Montserrat', sans-serif; font-size: 32px; font-weight: 900; cursor: pointer; -webkit-transition: cubic-bezier(0.55, 0, 0.1, 1) all 0.2s; -moz-transition: cubic-bezier(0.55, 0, 0.1, 1) all 0.2s; -o-transition: cubic-bezier(0.55, 0, 0.1, 1) all 0.2s; transition: cubic-bezier(0.55, 0, 0.1, 1) all 0.2s; } .two div::after { position: absolute; left: -10px; top: -10px; width: 100%; height: 100%; background: #3EADFF; content: " "; padding: 10px; z-index: -1; -webkit-transition: cubic-bezier(0.55, 0, 0.1, 1) all 0.3s; -moz-transition: cubic-bezier(0.55, 0, 0.1, 1) all 0.3s; -o-transition: cubic-bezier(0.55, 0, 0.1, 1) all 0.3s; transition: cubic-bezier(0.55, 0, 0.1, 1) all 0.3s; transform: scale(0); } .two div:hover { color: #000; transition-delay: 1.3s; } .two div:hover::after { transform: scale(1.2); transition-delay: 1.3s; } .two div p:nth-child(1) { position: absolute; width: 20px; height: 20px; border: solid 4px #01ADED; -webkit-border-radius: 100%; -moz-border-radius: 100%; -o-border-radius: 100%; border-radius: 100%; -webkit-box-shadow: 0px 2px 0px #003347, inset 0px 2px 0px #003347; -moz-box-shadow: 0px 2px 0px #003347, inset 0px 2px 0px #003347; -o-box-shadow: 0px 2px 0px #003347, inset 0px 2px 0px #003347; box-shadow: 0px 2px 0px #003347, inset 0px 2px 0px #003347; top: 0px; left: -40px; -webkit-transition: cubic-bezier(0.55, 0, 0.1, 1) all 1s; -moz-transition: cubic-bezier(0.55, 0, 0.1, 1) all 1s; -o-transition: cubic-bezier(0.55, 0, 0.1, 1) all 1s; transition: cubic-bezier(0.55, 0, 0.1, 1) all 1s; opacity: 0.0; } .two div p:nth-child(2) { position: absolute; width: 20px; height: 20px; border: solid 4px #01ADED; -webkit-border-radius: 100%; -moz-border-radius: 100%; -o-border-radius: 100%; border-radius: 100%; -webkit-box-shadow: 0px 2px 0px #003347, inset 0px 2px 0px #003347; -moz-box-shadow: 0px 2px 0px #003347, inset 0px 2px 0px #003347; -o-box-shadow: 0px 2px 0px #003347, inset 0px 2px 0px #003347; box-shadow: 0px 2px 0px #003347, inset 0px 2px 0px #003347; top: 0px; right: -40px; -webkit-transition: cubic-bezier(0.55, 0, 0.1, 1) all 1s; -moz-transition: cubic-bezier(0.55, 0, 0.1, 1) all 1s; -o-transition: cubic-bezier(0.55, 0, 0.1, 1) all 1s; transition: cubic-bezier(0.55, 0, 0.1, 1) all 1s; opacity: 0.0; } .two div:hover p:nth-child(1) { animation: jump 1.5s cubic-bezier(0.55, 0, 0.1, 1); } .two div:hover p:nth-child(2) { animation: jumping 1.5s cubic-bezier(0.55, 0, 0.1, 1); } @keyframes jump { 20% { opacity: 1.0; top: -40px; left: 10px; } 40% { transform: rotateY(180deg); opacity: 1; top: -20px; left: 40px; } 60% { opacity: 1; top: -50px; left: 85px; } 80% { opacity: 1; top: -50px; left: 85px; transform: rotateY(-180deg); } 100% { opacity: 1; top: -20px; left: 105px; } } @keyframes jumping { 20% { opacity: 1.0; top: -40px; right: 10px; } 40% { transform: rotateY(180deg); opacity: 1; top: -20px; right: 40px; } 60% { opacity: 1; top: -50px; right: 85px; } 80% { opacity: 1; top: -50px; right: 85px; transform: rotateY(-180deg); } 100% { opacity: 1; top: -20px; right: 105px; } } .three { position: absolute; top: 100%; left: 0; background: #FDF300; } .three div { position: absolute; top: 50%; left: 50%; -webkit-transform: translate(-50%, -50%); -moz-transform: translate(-50%, -50%); -o-transform: translate(-50%, -50%); transform: translate(-50%, -50%); font-family: 'Montserrat', sans-serif; font-size: 32px; -webkit-transition: cubic-bezier(0.55, 0, 0.1, 1) all 0.4s; -moz-transition: cubic-bezier(0.55, 0, 0.1, 1) all 0.4s; -o-transition: cubic-bezier(0.55, 0, 0.1, 1) all 0.4s; transition: cubic-bezier(0.55, 0, 0.1, 1) all 0.4s; cursor: pointer; font-weight: 900; } .three div::after { content: " "; position: absolute; top: 0px; right: 0px; width: 0; height: 0; border-left: 3px solid transparent; border-right: 3px solid transparent; border-top: 10px solid #000; transform: rotate(20deg); opacity: 0; -webkit-transition: cubic-bezier(0.55, 0, 0.1, 1) all 0.2s; -moz-transition: cubic-bezier(0.55, 0, 0.1, 1) all 0.2s; -o-transition: cubic-bezier(0.55, 0, 0.1, 1) all 0.2s; transition: cubic-bezier(0.55, 0, 0.1, 1) all 0.2s; } .three div::before { content: " "; position: absolute; top: -4px; right: 8px; width: 0; height: 0; border-left: 3px solid transparent; border-right: 3px solid transparent; border-top: 10px solid #000; transform: rotate(-20deg); opacity: 0; -webkit-transition: cubic-bezier(0.55, 0, 0.1, 1) all 0.1s; -moz-transition: cubic-bezier(0.55, 0, 0.1, 1) all 0.1s; -o-transition: cubic-bezier(0.55, 0, 0.1, 1) all 0.1s; transition: cubic-bezier(0.55, 0, 0.1, 1) all 0.1s; } .three div:hover::after { opacity: 1; top: -8px; transition-delay: 0.4s; } .three div:hover::before { opacity: 1; top: -12px; transition-delay: 0.4s; } .three div img { position: absolute; top: 28px; right: -40px; width: 32px; opacity: 0.0; -webkit-transition: cubic-bezier(0.55, 0, 0.1, 1) all 0.4s; -moz-transition: cubic-bezier(0.55, 0, 0.1, 1) all 0.4s; -o-transition: cubic-bezier(0.55, 0, 0.1, 1) all 0.4s; transition: cubic-bezier(0.55, 0, 0.1, 1) all 0.4s; } .three div:hover img { opacity: 1.0; right: -20px; top: 10px; transform: rotate(-25deg); animation: click 0.1s cubic-bezier(0.55, 0, 0.1, 1); animation-delay: 0.4s; } @keyframes click { 100% { transform: rotate(-25deg) scale(0.8); } }
JavaScript
粒子
时间
文字
hover
canvas
3d
游戏
音乐
火焰
水波
轮播图
鼠标跟随
动画
css
加载动画
导航
菜单
按钮
滑块
tab
弹出层
统计图
svg
×
Close
在线代码下载提示
开通在线代码永久免费下载,需支付20jQ币
开通后,在线代码模块中所有代码可终身免费下!
您已开通在线代码永久免费下载,关闭提示框后,点下载代码可直接下载!
您已经开通过在线代码永久免费下载
对不起,您的jQ币不足!可通过发布资源 或
直接充值获取jQ币
取消
开通下载
<!doctype html> <html> <head> <meta charset="utf-8"> <title>按钮悬停动画-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号