jquery+css实现app多级导航菜单弹出提示框提示层效果代码
代码语言:html
所属分类:菜单导航
代码描述:jquery+css实现app多级导航菜单弹出提示框提示层效果代码
代码标签: jquery css app 多级 导航 菜单 弹出 提示框 提示层
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/reset.min.css"> <link href='https://fonts.googleapis.com/css?family=Roboto:400,700' rel='stylesheet' type='text/css'> <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> <style> body { font-family: "Roboto", sans-serif; margin: 50px; -webkit-font-smoothing: antialiased; } section { background: #ebeaeb; margin: 0px auto; min-height: 90vh; padding: 40px; display: flex; justify-content: center; align-items: center; margin-bottom: 50px; } .section-notification .nav { display: flex; background: #333; color: white; border-radius: 4px; box-shadow: 0px 23px 30px -20px rgba(0, 0, 0, 0.4); } .section-notification .nav > li { padding: 20px 30px; width: 24px; height: 24px; cursor: pointer; color: rgba(255, 255, 255, 0.6); position: relative; transition: all 200ms ease-in-out; perspective: 1000px; } .section-notification .nav > li:last-child { border-right: none; } .section-notification .nav > li:hover { background: #444; } .section-notification .nav > li.is-active { box-shadow: 0px -4px 0px #0097A7 inset; background: #222; color: white; } .section-notification .nav > li.is-active .notifications { display: flex; -webkit-animation: note 800ms ease-in-out forwards; animation: note 800ms ease-in-out forwards; transform-origin: center 60px; } @-webkit-keyframes note { 0% { opacity: 0; transform: scale(0.1) rotate(30deg) translateY(50px) rotateX(90deg); } 50% { transform: rotate(-10deg) rotateX(-2deg); opacity: 1; } 70% { transform: rotate(3deg); } 100% { transform: scale(1); } } @keyframes note { 0% { opacity: 0; transform: scale(0.1) rotate(30deg) translateY(50px) rotateX(90deg); } 50% { transform: rotate(-10deg) rotateX(-2deg); opacity: 1; } 70% { transform: rotate(3deg); } 100% { transform: scale(1); } } .section-notification .notifications { background: #0097A7; display: none; border-radius: 4px; position: absolute; bottom: 100%; left: 50%; padding: 0px 10px; margin-bottom: 10px; margin-left: -95px; cursor: default; } .section-notification .notifications:after { top: 100%; left: 50%; border: solid transparent; content: " "; height: 0; width: 0; position: absolute; pointer-events: none; border-color: rgba(0, 151, 167, 0); border-top-color: #0097A7; border-width: 16px; margin-left: -16px; } .section-notification .notifications li { padding: 10px; font-family: "Roboto", sans-serif; color: white; font-size: 18px; } .section-notification .notifications li .material-icons { font-size: 18px; } .section-notification .notifications li span { display: inline-block; vertical-align: top; margin-left: 8px; } .section-alert .website { background: white; width: 600px; margin: 0 auto; height: 560px; box-shadow: 0px 23px 40px -20px rgba(0, 0, 0, 0.4); overflow: hidden; position: relative; perspective: 1000px; } .section-alert .title { padding: 20px 10px 0; font-size: 30px; font-weight: 700; text-transform: uppercase; color: #444; line-height: 48px; letter-spacing: 0.1em; } .section-alert .title .site-icon { font-size: 48px; margin-right: 8px; vertical-align: middle; display: inline-block; } .section-alert .title hr { border: none; border-top: 1px solid #ccc; } .section-alert .grid { -moz-column-count: 4; column-count: 4; -moz-column-gap: 10px; column-gap: 10px; margin: 10px; } .section-alert .item { background: #ccc; height: 60px; margin-bottom: 10px; display: inline-block; width: 100%; border-radius: 4px; background-size: cover; background-position: center; opacity: 0.6; transition: opacity 200ms ease; } .section-alert .item:hover { opacity: 1; cursor: pointer; } .section-alert .item:nth-child(4n-3) { height: 80px; } .section-alert .item:nth-child(2n) { height: 200px; } .section-alert .item:nth-child(3n) { height: 100px; } .section-alert .item:nth-child(1) { background-image: url(http://www.fillmurray.com/130/302); } .section-alert .item:nth-child(2) { background-image: url(http://www.fillmurray.com/130/304); } .section-alert .item:nth-child(3) { background-image: url(http://www.fillmurray.com/130/306); } .section-alert .item:nth-child(4) { background-image: url(http://www.fillmurray.com/130/308); } .section-alert .item:nth-child(5) { background-image: url(http://www.fillmurray.com/130/310); } .section-alert .item:nth-child(6) { background-image: url(http://www.fillmurray.com/130/312); } .section-alert .item:nth-child(7) { background-image: url(http://www.fillmurray.com/130/314); } .section-alert .item:nth-child(8) { background-image: url(http://www.fillmurray.com/130/316); } .section-alert .item:nth-child(9) { background-image: url(http://www.fillmurray.com/130/318); } .section-alert .item:nth-child(10) { background-image: url(http://www.fillmurray.com/130/320); } .section-alert .item:nth-child(11) { background-image: url(http://www.fillmurray.com/130/322); } .section-alert .item:nth-child(12) { background-image: url(http://www.fillmurray.com/130/324); } .section-alert .item:nth-child(13) { background-image: url(http://www.fillmurray.com/130/326); } .section-alert .item:nth-child(14) { background-image: url(http://www.fillmurray.com/130/328); } .section-alert .item:nth-child(15) { background-image: url(http://www.fillmurray.com/130/330); } .section-alert .item:nth-child(16) { background-image: url(http://www.fillmurray.com/130/332); } .section-alert .item:nth-child(17) { background-image: url(http://www.fillmurray.com/130/334); } .section-alert .item:nth-child(18) { background-image: url(http://www.fillmurray.com/130/336); } .section-alert .item:nth-child(19) { background-image: url(http://www.fillmurray.com/130/338); } .section-alert .item:nth-child(20) { background-image: url(http://www.fillmurray.com/130/340); } .section-alert .item:nth-child(21) { background-image: url(http://www.fillmurray.com/130/342); } .section-alert .item:nth-child(22) { background-image: url(http://www.fillmurray.com/130/344); } .section-alert .item:nth-child(23) { background-image: url(http://www.fillmurray.com/130/346); } .section-alert .item:nth-child(24) { background-image: url(http://www.fillmurray.com/130/348); } .section-alert .item:nth-child(25) { background-image: url(http://www.fillmurray.com/130/350); } .section-alert .item:nth-child(26) { background-image: url(http://www.fillmurray.com/130/352); } .section-alert .item:nth-child(27) { background-image: url(http://www.fillmurray.com/130/354); } .section-alert .item:nth-child(28) { background-image: url(http://www.fillmurray.com/130/356); } .section-alert .item:nth-child(29) { background-image: url(http://www.fillmurray.com/130/358); } .section-alert .item:nth-child(30) { background-image: url(http://www.fillmurray.com/130/360); } .section-alert .alert-element { position: absolute; bottom: 30px; left: 30px; color: rgba(255, 255, 255, 0.7); border-radius: 4px; font-weight: 400; display: flex; align-items: stretch; padding-right: 20px; perspective: 1000px; opacity: 0; transform-origin: bottom left; transform: rotate(90deg) scale(0.5) translate(100px, -300px) rotateX(90deg); transition: all 450ms cubic-bezier(0, 0.6, 0.35, 1.4); } .section-alert .alert-element .icon { padding: 20px; background: #0097A7; color: white; border-radius: 4px 0px 0px 4px; overflow: hidden; } .section-alert .alert-element .icon i { transform: scale(0.2) translateY(50px); opacity: 0; transition: all 400ms.........完整代码请登录后点击上方下载按钮下载查看
网友评论0