Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
drop
about
settings
Test 1
Test 2
Test 3
Test 4
help
more
deeper
deep 1
deep 2
deep 3
test
no drop
css
html, body{ padding:0px; margin:0px; background:#222; font-family: 'Karla', sans-serif; width:100vw; } body * { margin:0; padding:0; } /* HTML Nav Styles */ /* HTML Nav Styles */ /* HTML Nav Styles */ nav menuitem { position:relative; display:block; opacity:0; cursor:pointer; } nav menuitem > menu { position: absolute; pointer-events:none; } nav > menu { display:-webkit-box; display:-ms-flexbox; display:flex; } nav > menu > menuitem { pointer-events: all; opacity:1; } menu menuitem a { white-space:nowrap; display:block; } menuitem:hover > menu { pointer-events:initial; } menuitem:hover > menu > menuitem, menu:hover > menuitem{ opacity:1; } nav > menu > menuitem menuitem menu { -webkit-transform:translateX(100%); transform:translateX(100%); top:0; right:0; } /* User Styles Below Not Required */ /* User Styles Below Not Required */ /* User Styles Below Not Required */ nav { margin-top: 40px; margin-left: 40px; } nav a { background:#75F; color:#FFF; min-width:190px; -webkit-transition: background 0.5s, color 0.5s, -webkit-transform 0.5s; transition: background 0.5s, color 0.5s, -webkit-transform 0.5s; transition: background 0.5s, color 0.5s, transform 0.5s; transition: background 0.5s, color 0.5s, transform 0.5s, -webkit-transform 0.5s; margin:0px 6px 6px 0px; padding:20px 40px; -webkit-box-sizing:border-box; box-sizing:border-box; border-radius:3px; -webkit-box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5); box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5); position:relative; } nav a:hover:before { content: ''; top:0;left:0; position:absolute; background:rgba(0, 0, 0, 0.2); width:100%; height:100%; } nav > menu > menuitem > a + menu:after{ content: ''; position:absolute; border:10px solid transparent; border-top: 10px solid white; left:12px; top: -40px; } nav menuitem > menu > menuitem > a + menu:after{ content: ''; position:absolute; border:10px solid transparent; border-left: 10px solid white; top: 20px; left:-180px; -webkit-transition: opacity 0.6, -webkit-transform 0s; transition: opacity 0.6, -webkit-transform 0s; transition: opacity 0.6, transform 0s; transition: opacity 0.6, transform 0s, -webkit-transform 0s; } nav > menu > menuitem > menu > menuitem{ -webkit-transition: opacity 0.6s, -webkit-transform 0.6s; transition: opacity 0.6s, -webkit-transform 0.6s; transition: transform 0.6s, opacity 0.6s; transition: transform 0.6s, opacity 0.6s, -webkit-transform 0.6s; -webkit-transform:translateY(150%); transform:translateY(150%); opacity:0; } nav > menu > menuitem:hover > menu > menuitem, nav > menu > menuitem.hover > menu > menuitem{ -webkit-transform:translateY(0%); transform:translateY(0%); opacity: 1; } menuitem > menu > menuitem > menu > menuitem{ -webkit-transition: opacity 0.6s, -webkit-transform 0.6s; transition: opacity 0.6s, -webkit-transform 0.6s; transition: transform 0.6s, opacity 0.6s; transition: transform 0.6s, opacity 0.6s, -webkit-transform 0.6s; -webkit-transform:translateX(195px) translateY(0%); transform:translateX(195px) translateY(0%); opacity: 0; } menuitem > menu > menuitem:hover > menu > menuitem, menuitem > menu > menuitem.hover > menu > menuitem{ -webkit-transform:translateX(0) translateY(0%); transform:translateX(0) translateY(0%); opacity: 1; }
JavaScript
// For the thumbnail demo! :] var count = 1 setTimeout(demo, 500) setTimeout(demo, 700) setTimeout(demo, 900) setTimeout(reset, 2000) setTimeout(demo, 2500) setTimeout(demo, 2750) setTimeout(demo, 3050) var mousein = false function demo() { if(mousein) return document.getElementById('demo' + count++) .classList.toggle('hover') } function demo2() { if(mousein) return document.getElementById('demo2') .classList.toggle('hover') } function reset() { count = 1 var hovers = document.querySelectorAll('.hover') for(var i = 0; i < hovers.length; i++ ) { hovers[i].classList.remove('hover') } } document.addEventListener('mouseover', function() { mousein = true reset() })
粒子
时间
文字
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号