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.........完整代码请登录后点击上方下载按钮下载查看
网友评论0