Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
home
search
star
remove_red_eye
9
comment
4
account_circle
6
face
css
body { font-family: 'Roboto', sans-serif; -webkit-font-smoothing: antialiased; height: 100vh; } section { background: #01cfa9; height: 100vh; margin: 0 auto; display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: box; display: flex; -webkit-box-pack: center; -o-box-pack: center; -ms-flex-pack: center; -webkit-justify-content: center; justify-content: center; -webkit-box-align: center; -o-box-align: center; -ms-flex-align: center; -webkit-align-items: center; align-items: center; } .section-notification .nav { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: box; display: flex; background: #fff; color: #333; border-radius: 5px; box-shadow: 0px 23px 30px -20px rgba(0,0,0,0.3); padding: 0; } .section-notification .nav > li { padding: 20px 30px; width: 24px; height: 24px; cursor: pointer; list-style: none; color: rgba(0,0,0,0.5); position: relative; -webkit-perspective: 1000px; -ms-perspective: 1000px; perspective: 1000px; } .section-notification .nav > li:hover { background: #eee; } .section-notification .nav > li.is-active { box-shadow: 0px -7px 0px #05a285 inset; background: #dfdfdf; color: #333; -webkit-transition: 0.3s ease; transition: 0.3s ease; } .section-notification .nav > li.is-active .notifications { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: box; display: flex; -webkit-animation: note 0.7s ease-in-out forwards; animation: note 0.7s ease-in-out forwards; -webkit-transform-origin: center 60px; transform-origin: center 60px; } @-webkit-keyframes note { 0% { opacity: 0; -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; filter: alpha(opacity=0); -webkit-transform: scale(0.1) rotate(30deg) translateY(50px); transform: scale(0.1) rotate(30deg) translateY(50px); } 50% { -webkit-transform: rotate(-10deg); transform: rotate(-10deg); opacity: 1; -ms-filter: none; -webkit-filter: none; filter: none; } 70% { -webkit-transform: rotate(5deg); transform: rotate(5deg); } 100% { -webkit-transform: scale(1); transform: scale(1); } } @keyframes note { 0% { opacity: 0; -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; filter: alpha(opacity=0); -webkit-transform: scale(0.1) rotate(30deg) translateY(50px); transform: scale(0.1) rotate(30deg) translateY(50px); } 50% { -webkit-transform: rotate(-10deg); transform: rotate(-10deg); opacity: 1; -ms-filter: none; -webkit-filter: none; filter: none; } 70% { -webkit-transform: rotate(5deg); transform: rotate(5deg); } 100% { -webkit-transform: scale(1); transform: scale(1); } } .section-notification .notifications { list-style: none; background: #05a285; display: none; border-radius: 4px; position: absolute; bottom: 100%; left: 50%; padding: 0px 10px; margin: 0 0 10px -88px; cursor: default; color: #fff; } .section-notification .notifications:after { position: absolute; top: 100%; left: 50%; border: solid transparent; content: " "; height: 0; width: 0; border-top-color: #05a285; border-width: 16px; margin-left: -16px; pointer-events: none; } .section-notification li { padding: 6px; font-family: 'Roboto', sans-serif; color: #fff; font-size: 0.6em; } .section-notification li .material-icons { font-size: 24px; } .section-notification li span { display: inline-block; vertical-align: top; margin: 4px; }
JavaScript
var elems = document.getElementsByClassName("nav")[0].getElementsByTagName("li"); for (var i = 0; i < elems.length; i++) { elems[i].addEventListener("click", function(e) { for (var i = 0; i < elems.length; i++) { elems[i].className = ""; }; this.className = "is-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号