Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
Settings
Copy
Share
Delete
css
@import url("https://fonts.googleapis.com/css2?family=Montserrat&display=swap"); * { box-sizing: border-box; } body { width: 100%; height: 100vh; display: flex; align-items: center; justify-content: center; background-color: #2d2d2d; font-family: "Montserrat", sans-serif;overflow: hidden } .list-container { position: relative; } .list-container.active .more-button-list { opacity: 1; transform: scale(1); } .list-container.active .more-button-list-item { -webkit-animation: fadeInItem 0.6s 0.2s forwards; animation: fadeInItem 0.6s 0.2s forwards; } .list-container.active .more-button-list-item:nth-child(2) { -webkit-animation-delay: 0.4s; animation-delay: 0.4s; } .list-container.active .more-button-list-item:nth-child(3) { -webkit-animation-delay: 0.6s; animation-delay: 0.6s; } .list-container.active .more-button-list-item:nth-child(4) { -webkit-animation-delay: 0.8s; animation-delay: 0.8s; } .list-container.active .more-button { -webkit-animation: onePulse 0.6s forwards linear; animation: onePulse 0.6s forwards linear; } .list-container.active .menu-icon-wrapper { transform: rotate(-45deg); } .list-container.active .menu-icon-line.first { transform: rotate(-90deg) translateX(1px); } .list-container.active .menu-icon-line.last { transform: rotate(-90deg) translateX(-1px); } .more-button { background-color: #5c67ff; box-shadow: 0px 0px 0px 4px rgba(92, 103, 255, 0.3); border-radius: 50%; width: 50px; height: 50px; border: none; padding: 0; cursor: pointer; transition: 0.2s ease-in; display: flex; align-items: center; justify-content: center; color: #fff; position: relative; z-index: 2; } .more-button:hover, .more-button:focus { box-shadow: 0px 0px 0px 8px rgba(92, 103, 255, 0.3); background-color: #4854ff; } .more-button:focus { outline: 0; } .more-button-list { background-color: #fff; border-radius: 8px; list-style-type: none; width: 140px; height: 170px; box-shadow: 0px 0px 4px 4px rgba(150, 157, 249, 0.16); padding: 0; padding: 6px; position: absolute; right: 24px; bottom: 0; opacity: 0; transform: scale(0); transform-origin: bottom right; transition: all 0.3s ease 0.1s; } .more-button-list li { opacity: 0; } .more-button-list-item { display: flex; align-items: center; color: #1c3991; padding: 10px; border-radius: 4px; cursor: pointer; position: relative; transition: 0.2s ease-in; transform: translatex(-10px); } .more-button-list-item:hover { color: #5c67ff; } .more-button-list-item:after { content: ""; position: absolute; height: 1px; width: calc(100% - 24px); left: 12px; bottom: 0; background-color: rgba(132, 160, 244, 0.1); } .more-button-list-item:last-child:after { display: none; } .more-button-list-item svg { width: 18px; height: 18px; } .more-button-list-item span { display: inline-block; line-height: 20px; font-size: 14px; margin-left: 8px; } @-webkit-keyframes onePulse { 0% { box-shadow: 0px 0px 0px 0px rgba(92, 103, 255, 0.3); } 50% { box-shadow: 0px 0px 0px 12px rgba(92, 103, 255, 0.1); } 100% { box-shadow: 0px 0px 0px 4px rgba(92, 103, 255, 0.3); } } @keyframes onePulse { 0% { box-shadow: 0px 0px 0px 0px rgba(92, 103, 255, 0.3); } 50% { box-shadow: 0px 0px 0px 12px rgba(92, 103, 255, 0.1); } 100% { box-shadow: 0px 0px 0px 4px rgba(92, 103, 255, 0.3); } } @-webkit-keyframes fadeInItem { 100% { transform: translatex(0px); opacity: 1; } } @keyframes fadeInItem { 100% { transform: translatex(0px); opacity: 1; } } .socials { position: fixed; bottom: 16px; right: 16px; display: flex; align-items: center; } .social-link { color: #fff; display: flex; align-items: center; cursor: pointer; text-decoration: none; margin-right: 12px; } .menu-icon-wrapper { border-radius: 2px; width: 20px; height: 20px; display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; transition: transform 330ms ease-out; } .menu-icon-line { background-color: #fff; border-radius: 2px; width: 100%; height: 2px; } .menu-icon-line.half { width: 50%; } .menu-icon-line.first { transition: transform 300ms cubic-bezier(0.52, -0.8, 0.52, 0.52); transform-origin: right; } .menu-icon-line.last { align-self: flex-end; transition: transform 300ms cubic-bezier(0.52, -0.8, 0.52, 0.52); transform-origin: left; }
JavaScript
document.querySelector('.more-button').addEventListener('click', function () { document.querySelector('.list-container').classList.toggle('active'); });
粒子
时间
文字
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号