svg+js实现图标滑动底部手机导航条菜单效果代码
代码语言:html
所属分类:菜单导航
代码描述:svg+js实现图标滑动底部手机导航条菜单效果代码
代码标签: svg js 图标 滑动 底部 手机 导航条 菜单
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
@import url("https://fonts.googleapis.com/css2?family=Lato&display=swap");
html,
body,
* {
padding: 0;
margin: 0;
}
body {
width: 100vw;
min-height: 100vh;
background-color: #212526;
display: grid;
place-content: center;
}
:root {
--active-offset: 13px;
}
.sidebar-container {
width: 300px;
height: 55px;
position: relative;
}
.sidebar-container .sidebar-items {
width: 100%;
height: 100%;
background-color: rgba(255, 255, 255, 0.95);
border-radius: 7px;
position: absolute;
z-index: 1;
display: flex;
align-items: center;
justify-content: space-around;
padding: 0 20px;
padding-top: 3px;
box-sizing: border-box;
}
.sidebar-item {
display: flex;
flex-direction: column;
align-items: center;
position: relative;
}
.sidebar-item .icon {
width: 22px;
stroke: #000;
stroke-width: 1.5px;
position: absolute;
z-index: 4;
bottom: 0;
transition: bottom 0.4s;
cursor: pointer;
}
.sidebar-ite.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0