Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
Magic Border
Magic Border 2
Magic Border 3
css
body { display: -webkit-box; display: flex; flex-wrap: wrap; -webkit-box-pack: center; justify-content: center; -webkit-box-align: center; align-items: center; height: 100vh;background-color: #FFFACE; } body .wrap { display: -webkit-box; display: flex; -webkit-box-pack: justify; justify-content: space-between; flex-wrap: wrap; width: 450px; } body .wrap a { text-decoration: none; color: #222; padding: 20px; background: #efefef; text-transform: uppercase; text-align: center; position: relative; font-family: 'Oswald'; margin: 20px; -webkit-box-flex: 1; flex-grow: 1; cursor: pointer; } body .wrap a:before { content: ''; position: absolute; width: calc(100% + 4px); height: calc(100% + 4px); top: calc(2px/-1); left: calc(2px/-1); background: -webkit-gradient(linear, left top, right top, from(blue), to(blue)), -webkit-gradient(linear, left bottom, left top, color-stop(50%, blue), color-stop(50%, transparent)), -webkit-gradient(linear, left bottom, left top, color-stop(50%, blue), color-stop(50%, transparent)), -webkit-gradient(linear, left top, right top, from(blue), to(blue)), -webkit-gradient(linear, right top, left top, from(blue), to(blue)); background: linear-gradient(to right, blue 0%, blue 100%), linear-gradient(to top, blue 50%, transparent 50%), linear-gradient(to top, blue 50%, transparent 50%), linear-gradient(to right, blue 0%, blue 100%), linear-gradient(to left, blue 0%, blue 100%); background-size: 100% 2px, 2px 200%, 2px 200%, 0% 2px, 0% 2px; background-position: 50% 100%, 0% 0%, 100% 0%, 100% 0%, 0% 0%; background-repeat: no-repeat, no-repeat; -webkit-transition: background-position 0.3s ease-in-out, background-size 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out; transition: background-position 0.3s ease-in-out, background-size 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out; transition: transform 0.3s ease-in-out, background-position 0.3s ease-in-out, background-size 0.3s ease-in-out; transition: transform 0.3s ease-in-out, background-position 0.3s ease-in-out, background-size 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out; -webkit-transform: scaleX(0) rotate(0deg); transform: scaleX(0) rotate(0deg); -webkit-transition-delay: 0.6s, 0.3s, 0s; transition-delay: 0.6s, 0.3s, 0s; } body .wrap a:hover:before { background-size: 200% 2px, 2px 400%, 2px 400%, 55% 2px, 55% 2px; background-position: 50% 100%, 0% 100%, 100% 100%, 100% 0%, 0% 0%; -webkit-transform: scaleX(1) rotate(0deg); transform: scaleX(1) rotate(0deg); -webkit-transition-delay: 0s, 0.3s, 0.6s; transition-delay: 0s, 0.3s, 0.6s; } body .wrap a:nth-of-type(2) { position: relative; } body .wrap a:nth-of-type(2):before { content: ''; position: absolute; width: calc(100% + 8px); height: calc(100% + 8px); top: calc(4px/-1); left: calc(4px/-1); background: -webkit-gradient(linear, left top, right top, from(#222), to(#222)), -webkit-gradient(linear, left bottom, left top, color-stop(50%, #222), color-stop(50%, transparent)), -webkit-gradient(linear, left bottom, left top, color-stop(50%, #222), color-stop(50%, transparent)), -webkit-gradient(linear, left top, right top, from(#222), to(#222)), -webkit-gradient(linear, right top, left top, from(#222), to(#222)); background: linear-gradient(to right, #222 0%, #222 100%), linear-gradient(to top, #222 50%, transparent 50%), linear-gradient(to top, #222 50%, transparent 50%), linear-gradient(to right, #222 0%, #222 100%), linear-gradient(to left, #222 0%, #222 100%); background-size: 100% 4px, 4px 200%, 4px 200%, 0% 4px, 0% 4px; background-position: 50% 100%, 0% 0%, 100% 0%, 100% 0%, 0% 0%; background-repeat: no-repeat, no-repeat; -webkit-transition: background-position 0.2s ease-in-out, background-size 0.2s ease-in-out, -webkit-transform 0.2s ease-in-out; transition: background-position 0.2s ease-in-out, background-size 0.2s ease-in-out, -webkit-transform 0.2s ease-in-out; transition: transform 0.2s ease-in-out, background-position 0.2s ease-in-out, background-size 0.2s ease-in-out; transition: transform 0.2s ease-in-out, background-position 0.2s ease-in-out, background-size 0.2s ease-in-out, -webkit-transform 0.2s ease-in-out; -webkit-transform: scaleX(0) rotate(180deg); transform: scaleX(0) rotate(180deg); -webkit-transition-delay: 0.4s, 0.2s, 0s; transition-delay: 0.4s, 0.2s, 0s; } body .wrap a:nth-of-type(2):hover:before { background-size: 200% 4px, 4px 400%, 4px 400%, 55% 4px, 55% 4px; background-position: 50% 100%, 0% 100%, 100% 100%, 100% 0%, 0% 0%; -webkit-transform: scaleX(1) rotate(180deg); transform: scaleX(1) rotate(180deg); -webkit-transition-delay: 0s, 0.2s, 0.4s; transition-delay: 0s, 0.2s, 0.4s; } body .wrap a:nth-of-type(3) { position: relative; align-self: flex-end; } body .wrap a:nth-of-type(3):before { content: ''; position: absolute; width: calc(100% + 20px); height: calc(100% + 20px); top: calc(10px/-1); left: calc(10px/-1); -webkit-mask: -webkit-gradient(linear, left top, right top, from(#000), to(#000)), -webkit-gradient(linear, left bottom, left top, color-stop(50%, #000), color-stop(50%, transparent)), -webkit-gradient(linear, left bottom, left top, color-stop(50%, #000), color-stop(50%, transparent)), -webkit-gradient(linear, left top, right top, from(#000), to(#000)), -webkit-gradient(linear, right top, left top, from(#000), to(#000)); -webkit-mask: linear-gradient(to right, #000 0%, #000 100%), linear-gradient(to top, #000 50%, transparent 50%), linear-gradient(to top, #000 50%, transparent 50%), linear-gradient(to right, #000 0%, #000 100%), linear-gradient(to left, #000 0%, #000 100%); mask: -webkit-gradient(linear, left top, right top, from(#000), to(#000)), -webkit-gradient(linear, left bottom, left top, color-stop(50%, #000), color-stop(50%, transparent)), -webkit-gradient(linear, left bottom, left top, color-stop(50%, #000), color-stop(50%, transparent)), -webkit-gradient(linear, left top, right top, from(#000), to(#000)), -webkit-gradient(linear, right top, left top, from(#000), to(#000)); mask: linear-gradient(to right, #000 0%, #000 100%), linear-gradient(to top, #000 50%, transparent 50%), linear-gradient(to top, #000 50%, transparent 50%), linear-gradient(to right, #000 0%, #000 100%), linear-gradient(to left, #000 0%, #000 100%); -webkit-mask-size: 100% 10px, 10px 200%, 10px 200%, 0% 10px, 0% 10px; mask-size: 100% 10px, 10px 200%, 10px 200%, 0% 10px, 0% 10px; -webkit-mask-position: 50% 100%, 0% 0%, 100% 0%, 100% 0%, 0% 0%; mask-position: 50% 100%, 0% 0%, 100% 0%, 100% 0%, 0% 0%; -webkit-mask-repeat: no-repeat, no-repeat; mask-repeat: no-repeat, no-repeat; -webkit-transition: -webkit-transform 0.4s ease-in-out, -webkit-mask-position 0.4s ease-in-out, -webkit-mask-size 0.4s ease-in-out; transition: -webkit-transform 0.4s ease-in-out, -webkit-mask-position 0.4s ease-in-out, -webkit-mask-size 0.4s ease-in-out; transition: transform 0.4s ease-in-out, mask-position 0.4s ease-in-out, mask-size 0.4s ease-in-out; transition: transform 0.4s ease-in-out, mask-position 0.4s ease-in-out, mask-size 0.4s ease-in-out, -webkit-transform 0.4s ease-in-out, -webkit-mask-position 0.4s ease-in-out, -webkit-mask-size 0.4s ease-in-out; -webkit-transform: scaleX(0) rotate(0deg); transform: scaleX(0) rotate(0deg); -webkit-transition-delay: 0.8s, 0.4s, 0s; transition-delay: 0.8s, 0.4s, 0s; background: -webkit-gradient(linear, left top, left bottom, from(#40e0d0), color-stop(#ff8c00), to(#ff0080)); background: linear-gradient(to bottom, #40e0d0, #ff8c00, #ff0080); } body .wrap a:nth-of-type(3):hover:before { -webkit-mask-size: 200% 10px, 10px 400%, 10px 400%, 55% 10px, 55% 10px; mask-size: 200% 10px, 10px 400%, 10px 400%, 55% 10px, 55% 10px; -webkit-mask-position: 50% 100%, 0% 100%, 100% 100%, 100% 0%, 0% 0%; mask-position: 50% 100%, 0% 100%, 100% 100%, 100% 0%, 0% 0%; -webkit-transform: scaleX(1) rotate(0deg); transform: scaleX(1) rotate(0deg); -webkit-transition-delay: 0s, 0.4s, 0.8s; transition-delay: 0s, 0.4s, 0.8s; }
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号